Esempio n. 1
0
 private void console_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (SIO != null)
     {
         SIO.Destroy();
     }
 }
Esempio n. 2
0
 public void Destroy()
 {
     lock (this)                // we only get in here once
     {
         if (!Initialized)
         {
             return;
         }
         Initialized = false;
     }
     if (commPort != null)
     {
         commPort.Destroy();
         commPort = null;
     }
 }