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

            CloseQuery?.Invoke(this, args);

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

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

            if (args.IsCanceled)
            {
                return;
            }

            Closed(args);
            DisposeInternals();
        }
Exemple #3
0
 protected virtual void Closing(ViewModelCloseQueryArgs args)
 {
 }
 protected internal virtual void Closed(ViewModelCloseQueryArgs args)
 {
     DisposeInternals();
 }