예제 #1
0
파일: Frost.cs 프로젝트: zooba/wix3
        private void SetVariableStringDelegateFunction(object Caller, StringVariableEventArgs SVEArgs)
        {
            this.TestEnvironment[SVEArgs.StringName] = SVEArgs.StringValue;

            HRESULTS RetVal = (HRESULTS)OptionalNodeProcessing("SetVariableString/DelegateReturnValue", HRESULTS.HR_S_OK);
            SVEArgs.ResultToReturn = RetVal;
        }
예제 #2
0
파일: Frost.cs 프로젝트: zooba/wix3
        private void GetVariableStringDelegateFunction(object Caller, StringVariableEventArgs SVEArgs)
        {
            HRESULTS RetVal = HRESULTS.HR_S_OK;

            if (this.TestEnvironment.VariableExists(SVEArgs.StringName))
            {
                SVEArgs.StringValue = (string)this.TestEnvironment[SVEArgs.StringName];
            }
            else
            {
                RetVal = HRESULTS.HR_FAILURE;
            }

            RetVal = (HRESULTS)OptionalNodeProcessing("GetVariableString/DelegateReturnValue", RetVal);
            SVEArgs.ResultToReturn = RetVal;
        }