Example #1
0
 private void DialogUART_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (logFile != null)
     {
         closeLogFile();
     }
     timerPollForData.Enabled = false;
     Pk2.ExitUARTMode();
     radioButtonConnect.Checked    = false;
     radioButtonDisconnect.Checked = true;
     comboBoxBaud.Enabled          = true;
     buttonString1.Enabled         = false;
     buttonString2.Enabled         = false;
     buttonString3.Enabled         = false;
     buttonString4.Enabled         = false;
     panelVdd.Enabled = true; // no VDD changes when connected
 }
Example #2
0
 private void radioButtonDisconnect_Click(object sender, EventArgs e)
 {
     if (!radioButtonDisconnect.Checked)
     {
         radioButtonConnect.Checked    = false;
         radioButtonDisconnect.Checked = true;
         Pk2.ExitUARTMode();
         comboBoxBaud.Enabled     = true;
         timerPollForData.Enabled = false;
         buttonString1.Enabled    = false;
         buttonString2.Enabled    = false;
         buttonString3.Enabled    = false;
         buttonString4.Enabled    = false;
         panelVdd.Enabled         = true; // no VDD changes when connected
         // clear partial hex typing
         labelTypeHex.Text    = "Type Hex : ";
         labelTypeHex.Visible = false;
     }
 }