public ToolIndex(ITool tool, ToolOptionBase options, string name, Image image, Keys defaultKey) { Name = name; DefaultKeys = defaultKey; OptionsPanel = options; Tool = tool; MenuItem = new ToolStripMenuItem(Name, image); MenuItem.Text = name; MenuItem.Tag = this; Button = new ToolStripButton(image); Button.Text = name; Button.DisplayStyle = ToolStripItemDisplayStyle.Image; Button.Tag = this; }