public void Close()
        {
            var args = new ViewModelCloseQueryArgs();

            CloseQuery?.Invoke(this, args);

            if (args.IsCanceled)
            {
                return;
            }
        }
Esempio n. 2
0
        public void Close()
        {
            var args = new ViewModelCloseQueryArgs();

            Closing(args);
            CloseQuery?.Invoke(this, args);

            if (args.IsCanceled)
            {
                return;
            }

            Closed(args);
            DisposeInternals();
        }
Esempio n. 3
0
 protected virtual void Closing(ViewModelCloseQueryArgs args)
 {
 }
 protected internal virtual void Closed(ViewModelCloseQueryArgs args)
 {
     DisposeInternals();
 }