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

            CloseQuery?.Invoke(this, args);

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

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

            if (args.IsCanceled)
            {
                return;
            }

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