/// <summary> /// Discards all changes made by this window. /// </summary> protected virtual async Task <bool> DiscardChangesAsync() { // CTL-735 We might be handling the ViewModel.Closed event var vm = _logic.ViewModel; if (vm != null && vm.IsClosed) { return(true); } var result = await _logic.CancelViewModelAsync(); return(result); }
/// <summary> /// Discards all changes made by this window. /// </summary> protected virtual async Task <bool> DiscardChangesAsync() { return(await _logic.CancelViewModelAsync()); }