Esempio n. 1
0
        private void LoadConfigs()
        {
            RowColorItems.Clear();

            var configs = _highlightConfigManager.GetConfigs();

            foreach (var config in configs)
            {
                RowColorItems.Add(config);
            }
        }
Esempio n. 2
0
        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);
        }