public Form1() { han = new Hannota(layers); dh = new DrawHan(han); dh.Update(); InitializeComponent(); }
private void Start(object sender, EventArgs e) { dh.Dispose(); han = new Hannota(layers); dh = new DrawHan(han); dh.Update(); draw(null, null); }
//构造方法,初始化绘图数据 public DrawHan(Hannota h) { han = h; bmp = new Bitmap(639, 287); gra = Graphics.FromImage(bmp); gra.Clear(Color.White); arrowP = new Point[3] { new Point(75, 0), new Point(295, 0), new Point(505,0) }; takeP = new Point[3] { new Point(0, 60), new Point(220, 60), new Point(429, 60) }; pos = new int[3] { 0, 220, 429 }; lines = new Bitmap[8] { Resources._8, Resources._7, Resources._6, Resources._5, Resources._4, Resources._3, Resources._2, Resources._1, }; }
//构造方法,初始化绘图数据 public DrawHan(Hannota h) { han = h; bmp = new Bitmap(639, 287); gra = Graphics.FromImage(bmp); gra.Clear(Color.White); arrowP = new Point[3] { new Point(75, 0), new Point(295, 0), new Point(505, 0) }; takeP = new Point[3] { new Point(0, 60), new Point(220, 60), new Point(429, 60) }; pos = new int[3] { 0, 220, 429 }; lines = new Bitmap[8] { Resources._8, Resources._7, Resources._6, Resources._5, Resources._4, Resources._3, Resources._2, Resources._1, }; }
private void Start(object sender, EventArgs e) { dh.Dispose(); han = new Hannota(layers); dh = new DrawHan(han); dh.Update(); draw(null,null); }