public void Close(ModalResult modalResult) { modalResult.ModalType = this.modalType; this.CloseModal?.Invoke(this, EventArgs.Empty); this.OnClose?.Invoke(this, modalResult); }
public void Cancel() { this.CloseModal?.Invoke(this, EventArgs.Empty); this.OnClose?.Invoke(this, ModalResult.Cancel(this.modalType)); }