public ShellSchemeEditor(IShellScheme current) { InitializeComponent(); InitializeText(); _deleteCharBox.Items.AddRange(new string[] { "BackSpace", "Delete" }); _schemeCollection = TerminalUIPlugin.Instance.TerminalEmulatorPlugin.ShellSchemeCollection; _tags = new List <ItemTag>(); _removing = new List <ItemTag>(); _current = null; int index = 0; int current_index = 0; _blockUIEvent = true; foreach (IShellScheme ss in _schemeCollection.Items) { ItemTag tag = new ItemTag(ss.Clone(), ss); _tags.Add(tag); _schemeComboBox.Items.Add(ss.Name); if (current == ss) { current_index = index; } index++; } _blockUIEvent = false; //これで初期化 _schemeComboBox.SelectedIndex = current_index; }
public ShellSchemeEditor(IShellScheme current) { InitializeComponent(); InitializeText(); _deleteCharBox.Items.AddRange(new string[] { "BackSpace", "Delete" }); _schemeCollection = TerminalUIPlugin.Instance.TerminalEmulatorPlugin.ShellSchemeCollection; _tags = new List<ItemTag>(); _removing = new List<ItemTag>(); _current = null; int index = 0; int current_index = 0; _blockUIEvent = true; foreach (IShellScheme ss in _schemeCollection.Items) { ItemTag tag = new ItemTag(ss.Clone(), ss); _tags.Add(tag); _schemeComboBox.Items.Add(ss.Name); if (current == ss) current_index = index; index++; } _blockUIEvent = false; //これで初期化 _schemeComboBox.SelectedIndex = current_index; }