Example #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (cam != null && cam.IsRunning)
     {
         cam.Stop();
     }
     if (R != null)
     {
         R.AbortCommands();
     }
 }