private async void RemoveAction() { if (!await _dialogsHelper.ShowRequest("Удалить выбранное действие?", WindowType.ObjectBrowser)) { return; } Actions.Remove(SelectedAction); SelectedAction = Actions.Count == 0 ? null : Actions[0]; AnotherFieldsIsChanged = true; }
private async void DiscardChanges() { if (Switcher.HasChanges) { if (await _dialogsHelper.ShowRequest("Сохранить изменения?", WindowType.VariableEditor)) { SaveChanges(); Close(); } } Close(); }
private async Task <bool> GetRequest(string text) { return(await _dialogsHelper.ShowRequest(text, WindowType.ActionEditor)); }