public void Add(string commandName, CommandBarControl control) { control.Click += new EventHandler(this.CommandBarControl_Click); CommandState state = this.GetCommandState(commandName, control); state.AddItem(control); this.itemTable[control] = commandName; }