Esempio n. 1
0
 protected override void OnHandleDestroyed(EventArgs e)
 {
     if (GoingAway != null)
     {
         GoingAway.Invoke(this, null);                 //shake any bindings to us loose
     }
     GoingAway = null;
     base.OnHandleDestroyed(e);
 }
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (GoingAway != null)
     {
         GoingAway.Invoke(this, null);                 //shake any bindings to us loose
     }
     if (disposing && (components != null))
     {
         components.Dispose();
     }
     base.Dispose(disposing);
 }