protected virtual void OnCloseRequested(CloseEventHandlerArgs args) { RequestCloseEventHandler handler = CloseRequested; if (handler != null) { handler(this, args); } }
public void OnRequestClose(object data = null) { RequestCloseEventHandler handler = RequestClose; if (handler != null) { var e = new RequestCloseEventArgs(data); handler(this, e); } }
private void CloseWindow(object obj) { RequestCloseEventHandler onRequestClose = this.RequestClose; onRequestClose?.Invoke(this, new RequestCloseEventArgs()); }