Example #1
0
 public override void ShowToolBar(Form parent)
 {
     base.ShowToolBar(parent);
     this.frm      = new ScrapPaintPenTool(this, EraseColor.ToArgb() == this._color.ToArgb());
     this.frm.Left = parent.Left;
     this.frm.Top  = (parent.Top - this.frm.Height) - 20;
     parent.AddOwnedForm(this.frm);
     this.frm.Show();
     parent.AddOwnedForm(this.frm);
 }
Example #2
0
 public override void Dispose()
 {
     base.Dispose();
     if (this.cmd != null)
     {
         this.cmd.Dispose();
         this.cmd = null;
     }
     if (this.frm != null)
     {
         this.frm.Dispose();
         this.frm = null;
     }
 }