private async Task OnRemoveCommandExecuteAsync() { var result = await _messageService.ShowAsync("Are you sure?", button : MessageButton.YesNo, icon : MessageImage.Warning); if (result == MessageResult.Yes) { FilterGroups.Remove(SelectedFilterGroup); await SaveFilterGroupsAsync(); SelectedFilterGroup = null; Updated.SafeInvoke(this); } }
private async Task OnRemoveCommandExecuteAsync() { var result = await _messageService.ShowAsync(LanguageHelper.GetString("Controls_LogViewer_AreYouSure"), button : MessageButton.YesNo, icon : MessageImage.Warning); if (result == MessageResult.Yes) { FilterGroups.Remove(SelectedFilterGroup); await SaveFilterGroupsAsync(); SelectedFilterGroup = null; Updated?.Invoke(this, EventArgs.Empty); } }