public Canvas() { mCanvasCore = new CanvasCore(); mCanvasControl = null; mSizeMode = @"Normal"; mDockStyle = @"None"; }
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; }