Exemple #1
0
        protected virtual void OnCloseRequested(CloseEventHandlerArgs args)
        {
            RequestCloseEventHandler handler = CloseRequested;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Exemple #2
0
        public void OnRequestClose(object data = null)
        {
            RequestCloseEventHandler handler = RequestClose;

            if (handler != null)
            {
                var e = new RequestCloseEventArgs(data);
                handler(this, e);
            }
        }
Exemple #3
0
        private void CloseWindow(object obj)
        {
            RequestCloseEventHandler onRequestClose = this.RequestClose;

            onRequestClose?.Invoke(this, new RequestCloseEventArgs());
        }