private void LoadConfigs() { RowColorItems.Clear(); var configs = _highlightConfigManager.GetConfigs(); foreach (var config in configs) { RowColorItems.Add(config); } }
private void ExecuteAddColorCommand(object obj) { var rowColorItem = new HighlightConfig { Key = Guid.NewGuid().ToString(), BackgroundColor = Background, ForegroundColor = Foreground, RowQueryText = RowQueryText }; RowColorItems.Add(rowColorItem); SelectedRowColorItem = rowColorItem; OnSelectedHighlightChanged(HighlightOption.None); }