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