public void Close() { var args = new ViewModelCloseQueryArgs(); CloseQuery?.Invoke(this, args); if (args.IsCanceled) { return; } }
public void Close() { var args = new ViewModelCloseQueryArgs(); Closing(args); CloseQuery?.Invoke(this, args); if (args.IsCanceled) { return; } Closed(args); DisposeInternals(); }
protected virtual void Closing(ViewModelCloseQueryArgs args) { }
protected internal virtual void Closed(ViewModelCloseQueryArgs args) { DisposeInternals(); }