Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         contactHandler.Dispose();
     }
 }
 protected override void OnClosing(CancelEventArgs e)
 {
     contactHandler.Dispose();
     base.OnClosing(e);
 }
Example #3
0
 public void Stop()
 {
     contactHandler.Frame -= contactHandler_Frame;
     contactHandler.Dispose();
     contactHandler = null;
 }
Example #4
0
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     contactHandler.Dispose();
     base.OnClosing(e);
 }