Example #1
0
 internal void RaiseOnWindowClosing(object sender, WindowClosingEventArgs e) 
 {
     if ((this.WindowClosing != null)) 
     {
         this.WindowClosing(sender, e);
     }
 }
Example #2
0
 public virtual void WindowClosing(bool isChildWindow, ref bool cancel) 
 {
     WindowClosingEventArgs windowclosingEvent = new WindowClosingEventArgs(isChildWindow, cancel);
     this.parent.RaiseOnWindowClosing(this.parent, windowclosingEvent);
     cancel = windowclosingEvent.Cancel;
 }