コード例 #1
0
 private void foreGroundButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.ForeGroundColorButton;
     myPluginHost.Feedback(selectedTool, this);
     foreGroundButton.BackColor = foregroundColor;
 }
コード例 #2
0
 private void penToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.Pencil;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #3
0
 private void selectToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.RectangleSelection;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #4
0
 private void defaultButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.MouseCursor;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #5
0
 private void colorPikerToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.ColorPick;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #6
0
 private void fillToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.Bucket;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #7
0
 private void penToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.Pencil;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #8
0
        public void Feedback(Tool.BasicTools Feedback, IPlugin Plugin)
        { // Do not remoove !!!!
            #region Tool creation and setting tool data Main switch

            switch (Feedback)
            {
            case Tool.BasicTools.BackGroundColorButton:
            {
                Plugin.BackgroundColor = (new ColorDialogManager()).BackGroundColor;
                Plugin.MainInterface.Invalidate(true);
            } break;

            case Tool.BasicTools.ForeGroundColorButton:
            {
                Plugin.ForegroundColor = (new ColorDialogManager()).ForeGroundColor;
                Plugin.MainInterface.Invalidate(true);
            } break;

            case Tool.BasicTools.Pencil:
            {
                CreateTool(new MyTools.PencilTool());
                (new DialogManger.DialogToolManager()).Show();
            } break;

            case Tool.BasicTools.MouseCursor:
            {
                CreateTool(new MyTools.BaseTool());
            } break;

            case Tool.BasicTools.Text:
            {
                CreateTool(new MyTools.TextTool());
                (new DialogManger.DialogToolManager()).Show();
            } break;

            case Tool.BasicTools.Brush:
            {
                CreateTool(new MyTools.BrushTool());
                (new DialogManger.DialogToolManager()).Show();
            } break;

            case Tool.BasicTools.Eraser:
            {
                CreateTool(new MyTools.EraserTool());
            } break;

            case Tool.BasicTools.ColorPick:
            {
                CreateTool(new MyTools.ColorPickTool());
            } break;

            case Tool.BasicTools.Zoom:
            {
                CreateTool(new MyTools.ZoomTool());
            } break;

            case Tool.BasicTools.Bucket:
            {
                CreateTool(new MyTools.BucketTool());
            } break;

            case Tool.BasicTools.RectangleSelection:
            {
                CreateTool(new MyTools.RectangleSelectionTool());
            } break;

            default:
            {
                CreateTool(new MyTools.BaseTool());
            }
            break;
            }

            #endregion
        }
コード例 #9
0
 private void foreGroundButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.ForeGroundColorButton;
     myPluginHost.Feedback(selectedTool, this);
     foreGroundButton.BackColor = foregroundColor;
 }
コード例 #10
0
 private void defaultButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.MouseCursor;
     myPluginHost.Feedback(selectedTool, this);
 }   
コード例 #11
0
 private void selectToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.RectangleSelection;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #12
0
 private void fillToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.Bucket;
     myPluginHost.Feedback(selectedTool, this);
 }
コード例 #13
0
 private void colorPikerToolButton_Click(object sender, EventArgs e)
 {
     selectedTool = Tool.BasicTools.ColorPick;
     myPluginHost.Feedback(selectedTool, this);
 }