Example #1
0
 public Tool(PaintDotNet.Controls.DocumentWorkspace documentWorkspace, ImageResource toolBarImage, string name, string helpText, char hotKey, bool skipIfActiveOnHotKey, PaintDotNet.ToolBarConfigItems toolBarConfigItems)
 {
     this.documentWorkspace  = documentWorkspace;
     this.toolBarImage       = toolBarImage;
     this.toolInfo           = new ToolInfo(name, helpText, toolBarImage, this.LargeImage, hotKey, skipIfActiveOnHotKey, base.GetType());
     this.toolBarConfigItems = toolBarConfigItems;
 }
Example #2
0
 public ToolHistoryMemento(PaintDotNet.Controls.DocumentWorkspace documentWorkspace, string name, ImageResource image) : base(name, image)
 {
     this.documentWorkspace = documentWorkspace;
     this.activeLayerIndex  = this.documentWorkspace.ActiveLayerIndex;
     this.toolType          = documentWorkspace.GetToolType();
 }
 public CopyToClipboardActionBase(PaintDotNet.Controls.DocumentWorkspace documentWorkspace)
 {
     this.documentWorkspace = documentWorkspace;
 }