private void editorScheme() { int index = colorSchemesListView.SelectedIndex; if (index >= 0) { RadarColorSchemeEditorClient client = new RadarColorSchemeEditorClient(_colors.GetTableDataConfig(index)); if (client.ShowDialog().Value) { _colors.Editor(index, client.Config); } loadColorSchemesListView(); colorSchemesListView.SelectedIndex = index; } }
private void addScheme() { ColorTableDataConfig config = new ColorTableDataConfig() { Heading = "方案 " + (_colors.Count + 1).ToString() }; RadarColorSchemeEditorClient client = new RadarColorSchemeEditorClient(config); if (client.ShowDialog().Value) { _colors.Add(client.Config); loadColorSchemesListView(); colorSchemesListView.SelectedIndex = colorSchemesListView.Items.Count - 1; } }