예제 #1
0
        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;
        }
예제 #2
0
        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;
        }