/// <summary> /// Constructor. /// </summary> public StringsControlToolStripEx() { InitializeComponent(); toolStripComboBox.KeyDown += new KeyEventHandler(toolStripComboBox_KeyDown); toolStripButtonRemove.Click += new EventHandler(toolStripButtonRemove_Click); toolStripButtonAdd.Click += new EventHandler(toolStripButtonAdd_Click); deleteAllToolStripMenuItem.Click += new EventHandler(deleteAllToolStripMenuItem_Click); ValuesUpdatedEvent += new ToolStripUpdateDelegate(StringsControlToolStripEx_ValuesUpdatedEvent); UpdateUI(); }
/// <summary> /// Constructor. /// </summary> public StringsControlToolStripEx() { InitializeComponent(); toolStripComboBox.KeyDown += new KeyEventHandler(toolStripComboBox_KeyDown); toolStripButtonRemove.Click += new EventHandler(toolStripButtonRemove_Click); toolStripButtonAdd.Click += new EventHandler(toolStripButtonAdd_Click); deleteAllToolStripMenuItem.Click += new EventHandler(deleteAllToolStripMenuItem_Click); ValuesUpdatedEvent += new ToolStripUpdateDelegate(StringsControlToolStripEx_ValuesUpdatedEvent); UpdateUI(); }