Example #1
0
        public void SetBool(string paramName, bool value, out eParamStatus status)
        {
            BoolParameter param = GetParameter(paramName) as BoolParameter;

            if (param != null)
            {
                param.BoolValue = value;
                status          = eParamStatus.OK;
            }
            else
            {
                status = eParamStatus.NoParamFound;
            }
        }
Example #2
0
        public bool GetBool(string paramName, out eParamStatus status)
        {
            BoolParameter param = GetParameter(paramName) as BoolParameter;

            if (param != null)
            {
                status = eParamStatus.OK;
                return(param.BoolValue);
            }
            else
            {
                status = eParamStatus.NoParamFound;
            }
            return(false);
        }
Example #3
0
 private void CreateParameters(EditableConversation ec, Conversation conversation)
 {
     for (int i = 0; i < ec.Parameters.Count; i++)
     {
         if (ec.Parameters[i].ParameterType == EditableParameter.eParamType.Bool)
         {
             EditableBoolParameter editableParam = ec.Parameters[i] as EditableBoolParameter;
             BoolParameter         boolParam     = new BoolParameter(editableParam.ParameterName, editableParam.BoolValue);
             conversation.Parameters.Add(boolParam);
         }
         else if (ec.Parameters[i].ParameterType == EditableParameter.eParamType.Int)
         {
             EditableIntParameter editableParam = ec.Parameters[i] as EditableIntParameter;
             IntParameter         intParam      = new IntParameter(editableParam.ParameterName, editableParam.IntValue);
             conversation.Parameters.Add(intParam);
         }
     }
 }