Exemplo n.º 1
0
 public Canvas()
 {
     mCanvasCore = new CanvasCore();
     mCanvasControl = null;
     mSizeMode = @"Normal";
     mDockStyle = @"None";
 }
Exemplo n.º 2
0
 public CanvasControl(CanvasCore nCanvasCore)
 {
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.CacheText, true);
     this.BackColor = Color.White;
     ResizeRedraw = true;
     AllowDrop = true;
     mCanvasCore = nCanvasCore;
 }