Beispiel #1
0
        public void ExecuteReaction(string serialAnswer, Form_Center mainFM)
        {
            switch (kindOfOutput)
            {
            case KindOfOutputIndex.Serial:
            {
                ExecuteSendOperation(serialAnswer);
                break;
            }

            case KindOfOutputIndex.Visual:
            {
                ExecuteDisplayOperation(serialAnswer, mainFM);
                break;
            }

            case KindOfOutputIndex.Both:
            {
                ExecuteDisplayOperation(serialAnswer, mainFM);
                ExecuteSendOperation(serialAnswer);
                break;
            }

            case KindOfOutputIndex.None:
            {
                // Nothing.
                break;
            }
            }
        }
Beispiel #2
0
        public void ExecuteDisplayOperation(string serialAnswer, Form_Center mainFM)
        {
            switch (target.DispIxd)
            {
            case DisplayOperation.Keyword:
            case DisplayOperation.DisplayText:
            {
                target.DisplayText(key);
                break;
            }

            case DisplayOperation.YesNo:
            {
                if (KeywordCheck(serialAnswer) == FunctionResultIndex.ResultYes)
                {
                    target.DisplayTextPos();
                }
                else if (KeywordCheck(serialAnswer) == FunctionResultIndex.ResultNo)
                {
                    target.DisplayTextPos();
                }
                break;
            }

            case DisplayOperation.RawData:
            {
                target.DisplaySerialAnswer(serialAnswer);
                break;
            }
            }

            foreach (dynamic d in mainFM.ref_playground.Controls)
            {
                /*if (d.Name == targetObject.rootObject.Name)
                 * {
                 *  d.Text = outputText;
                 *  d.BackColor = backColorToSet;
                 *  d.ForeColor = fontColorToSet;
                 * }*/
            }
        }
Beispiel #3
0
 public Form_Array(Form_Center mainFM)
 {
     this.mainFM = mainFM;
     InitializeComponent();
 }
 public Form_CreateNewObject(Form_Center mainFM)
 {
     this.mainFM = mainFM;
     InitializeComponent();
 }
Beispiel #5
0
 public Form_Playground(Form_Center mainFM)
 {
     this.mainFM = mainFM;
     InitializeComponent();
 }