public void OnCancelled(Action cancelled) { if (Interval.IsChanged) { dialogFacade.Confirm(MyLibraryResources.IntervalChangedCancelConfirmation, (result) => { if (result) { Interval.CancelEdit(); SmartDispatcher.BeginInvoke(cancelled); } }); } else { Interval.CancelEdit(); SmartDispatcher.BeginInvoke(cancelled); } }