Exemple #1
0
        public void SetTemp()
        {
            if (SelectedCommand == null)
            {
                SelectedCommand = new CommandModel();
            }
            SelectedCommand.SyncCode1   = InputCommand.SyncCode1;
            SelectedCommand.SyncCode2   = InputCommand.SyncCode2;
            SelectedCommand.SyncCode3   = InputCommand.SyncCode3;
            SelectedCommand.ControlCode = "A0";
            SelectedCommand.ControlVal1 = SetTempInt.ToString("x2");
            SelectedCommand.ControlVal2 = SetTempFloat.ToString("x2");

            InputCommand = SelectedCommand;

            Excute();
        }
Exemple #2
0
        public void DownTemp()
        {
            SetTempInt--;
            if (SetTempInt <= 0)
            {
                SetTempInt = 0;
            }
            SelectedCommand.SyncCode1   = InputCommand.SyncCode1;
            SelectedCommand.SyncCode2   = InputCommand.SyncCode2;
            SelectedCommand.SyncCode3   = InputCommand.SyncCode3;
            SelectedCommand.ControlCode = "A2";
            SelectedCommand.ControlVal1 = SetTempInt.ToString("x2");
            SelectedCommand.ControlVal2 = SetTempFloat.ToString("x2");

            InputCommand = SelectedCommand;

            Excute();
        }
Exemple #3
0
        public void UpTemp()
        {
            SetTempInt++;
            if (SetTempInt >= 100)
            {
                SetTempInt = 99;
            }
            SelectedCommand.SyncCode1   = InputCommand.SyncCode1;
            SelectedCommand.SyncCode2   = InputCommand.SyncCode2;
            SelectedCommand.SyncCode3   = InputCommand.SyncCode3;
            SelectedCommand.ControlCode = "A1";
            SelectedCommand.ControlVal1 = SetTempInt.ToString("x2");
            SelectedCommand.ControlVal2 = SetTempFloat.ToString("x2");

            InputCommand = SelectedCommand;

            Excute();
        }