示例#1
0
文件: Canvas.cs 项目: zyouhua/nvwa
 public Canvas()
 {
     mCanvasCore = new CanvasCore();
     mCanvasControl = null;
     mSizeMode = @"Normal";
     mDockStyle = @"None";
 }
示例#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;
 }