Example #1
0
 private void buttonSwitch_Switch_ValueChanged(object sender, EventArgs e)
 {
     if (buttonSwitch_Switch.Value)
     {
         ApplyConfigAndStartTask();
     }
     else
     {
         _scopeTask.Stop();
         _funcTask.Stop();
     }
 }
Example #2
0
 private void button_reset_Click(object sender, EventArgs e)
 {
     this._functionTask?.Stop();
     _scopeTask?.Stop();
     ShowBoardConnectForm();
     CheckIfBoardConnected();
 }
Example #3
0
 private void OscilloscopeSoftPanelForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     _scopeTask?.Stop();
     _funcTask?.Stop();
     _globalInfo.AITask.Stop();
 }