private void registerCommandBinding(string commandName, CommandBinding cmdBinding) { commandBindingTable.Add(commandName, cmdBinding); }
public static void Connect(ToolStripButton button, CommandBinding commandBinding) { ToolStripButton_CommandBindingConnector unused = new ToolStripButton_CommandBindingConnector(button, commandBinding); }
public static void Connect(ToolStripMenuItem item, CommandBinding commandBinding) { ToolStripMenuItem_CommandBindingConnector unused = new ToolStripMenuItem_CommandBindingConnector(item, commandBinding); }
protected ToolStripButton_CommandBindingConnector(ToolStripButton button, CommandBinding commandBinding) : base(commandBinding) { toolStripButton = button; button.Click += this.HandleUIEvent; }
protected ToolStripMenuItem_CommandBindingConnector(ToolStripMenuItem item, CommandBinding commandBinding) : base(commandBinding) { m_item = item; m_item.Click += this.HandleUIEvent; }