Exemplo n.º 1
0
        protected virtual void OnCloseRequested(CloseEventHandlerArgs args)
        {
            RequestCloseEventHandler handler = CloseRequested;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Exemplo n.º 2
0
        public void OnRequestClose(object data = null)
        {
            RequestCloseEventHandler handler = RequestClose;

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

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