Exemple #1
0
 public ScrapPaintWindow(ScrapBase scrap) : base(scrap)
 {
     base.SetStyle(ControlStyles.UserPaint, true);
     base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     this.isToolUse           = false;
     this.activeTool          = null;
     this.historyCommand      = new List <ToolCommand>();
     this.toolFrm             = new ScrapPaintToolBar(this);
     this.toolFrm.KeyUp      += new KeyEventHandler(this.layerForm_KeyUp);
     this.toolFrm.SelectTool += new ScrapPaintToolBar.SelectToolDelegate(this.toolFrm_SelectTool);
     base.AddOwnedForm(this.toolFrm);
     this.layerForm               = new ScrapPaintLayer(this);
     this.layerForm.KeyUp        += new KeyEventHandler(this.layerForm_KeyUp);
     this.layerForm.SelectLayer  += new ScrapPaintLayerItem.LayerDelegate(this.layerForm_SelectLayer);
     this.layerForm.LayerRefresh += new ScrapPaintLayerItem.LayerDelegate(this.layerForm_LayerRefresh);
     base.AddOwnedForm(this.layerForm);
     this.activeLayer = this.layerForm.SelectionLayer;
 }
Exemple #2
0
 // Token: 0x06000106 RID: 262 RVA: 0x00007664 File Offset: 0x00005864
 public ScrapPaintWindow(ScrapBase scrap) : base(scrap)
 {
     base.SetStyle(ControlStyles.UserPaint, true);
     base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     isToolUse           = false;
     activeTool          = null;
     historyCommand      = new List <ToolCommand>();
     toolFrm             = new ScrapPaintToolBar(this);
     toolFrm.KeyUp      += layerForm_KeyUp;
     toolFrm.SelectTool += toolFrm_SelectTool;
     base.AddOwnedForm(toolFrm);
     layerForm               = new ScrapPaintLayer(this);
     layerForm.KeyUp        += layerForm_KeyUp;
     layerForm.SelectLayer  += layerForm_SelectLayer;
     layerForm.LayerRefresh += layerForm_LayerRefresh;
     base.AddOwnedForm(layerForm);
     activeLayer = layerForm.SelectionLayer;
 }