Пример #1
0
 public static void DisposeSingleton()
 {
     if (singleton != null)
     {
         singleton.Dispose();
         singleton = null;
     }
 }
Пример #2
0
 void Application_ApplicationExit(object sender, EventArgs e)
 {
     // free up UsbIRRT resources
     UsbIRRT.DisposeSingleton();
 }