Ejemplo n.º 1
0
 /// <summary>
 /// EVENT: Launches the Debug mode form when "Debug Mode" menu item is clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void debugModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (antComm.ChannelOpen)
     {
         antComm.CloseChannel();
     }
     if (serialPort.IsOpen)
     {
         serialPort.Close();
     }
     Form launch = new frmDisplay(chooserForm);
     launch.Show();
     this.Hide();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// EVENT: Called when the launch debug button is clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnDebugLaunch_Click(object sender, EventArgs e)
 {
     Form launch = new frmDisplay(this);
     this.Hide();
     launch.Show();
 }