Exemple #1
0
        private void frmTHCInterface_Load(object sender, EventArgs e)
        {
            frmConnect connectForm = new frmConnect();

            // Set the color off all the status bits to indicate not active
            pbArcGoodStatus.BackColor        = Color.Black;
            pbThcDownStatus.BackColor        = Color.Black;
            pbThcUpStatus.BackColor          = Color.Black;
            pbTorchOnStatus.BackColor        = Color.Black;
            pbVoltageControlStatus.BackColor = Color.Black;

            this.Show();
            thc.setPort(connectForm.ConnectToTHC(this), 115200);
            OpenTHCPort();
            InitializeControls();
        }
        private void frmTHCInterface_Load(object sender, EventArgs e)
        {
            frmConnect connectForm = new frmConnect();

            // Set the color off all the status bits to indicate not active
            pbArcGoodStatus.BackColor = Color.Black;
            pbThcDownStatus.BackColor = Color.Black;
            pbThcUpStatus.BackColor = Color.Black;
            pbTorchOnStatus.BackColor = Color.Black;
            pbVoltageControlStatus.BackColor = Color.Black;
            
            this.Show();
            thc.setPort(connectForm.ConnectToTHC(this), 115200);
            OpenTHCPort();
            InitializeControls();
        }