예제 #1
0
 void ContentFrame_Disposed(object sender, EventArgs e)
 {
     HConnection.RemoveByKey -= HConnection_RemoveByKey;
     HUsage.ClosingApp       -= HUsage_ClosingApp;
     if (ParentFrame != null)
     {
         var pf = ParentFrame;
         MainWindow.Instance.RunInMainWindow(() => pf.NotifyDisposed(this));
     }
     Usage.Dispose();
 }
예제 #2
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     base.OnFormClosed(e);
     Usage.Dispose();
     HUsage.ClosingApp -= HUsage_ClosingApp;
 }