private void CreateFilters() { foreach (var logLevel in Enum.GetValues(typeof(LogLevel)).Cast <LogLevel>()) { LogFilters.Add(new LogFilter { FilterType = logLevel, IsEnabled = true }); } }
private async Task OnAddCommandExecuteAsync() { var logFilter = new LogFilter(); if (await _uiVisualizerService.ShowDialogAsync <LogFilterEditorViewModel>(logFilter) ?? false) { LogFilters.Add(logFilter); SelectedLogFilter = logFilter; Validate(true); } }