public override MenuCommand[] GetMenuCommands() { var mcAddComponent = new DefaultMenuCommand(); mcAddComponent.Text = "New Component"; mcAddComponent.Click += new EventHandler(AddTableMenuClick); return new MenuCommand[] { mcAddComponent }; }