Esempio n. 1
0
        public FormConsole(UserSerial serial, ConnectTime time)
        {
            InitializeComponent();

            this.userSerial = serial;
            userSerial.ProcessTestCommand += UserSerial_ProcessTestCommand;
            //userSerial.ProcessDeviceCommand += UserSerial_ProcessDeviceCommand;
            timerCycle.Tick += TimerCycle_Tick;

            this.connectTime = time;

            testVSensor.comboBox.Items.AddRange(new object[]
            {
                "Turn On",
                "Turn Off",
            });
            testVSensor.comboBox.SelectedIndex = 0;

            testPerformance.comboBox.Items.AddRange(new object[]
            {
                "Stop Mode",
                "Standby Mode",
                "Turn On GSM",
                "Turn Off GSM",
                "Reset GSM",
                "Sleep GSM",
            });
            testVSensor.comboBox.SelectedIndex = 0;
        }