private void foreGroundButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.ForeGroundColorButton; myPluginHost.Feedback(selectedTool, this); foreGroundButton.BackColor = foregroundColor; }
private void penToolButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.Pencil; myPluginHost.Feedback(selectedTool, this); }
private void selectToolButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.RectangleSelection; myPluginHost.Feedback(selectedTool, this); }
private void defaultButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.MouseCursor; myPluginHost.Feedback(selectedTool, this); }
private void colorPikerToolButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.ColorPick; myPluginHost.Feedback(selectedTool, this); }
private void fillToolButton_Click(object sender, EventArgs e) { selectedTool = Tool.BasicTools.Bucket; myPluginHost.Feedback(selectedTool, this); }
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 }