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);
            }
        }
Exemple #2
0
        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);
            }
        }