Example #1
0
 public Form1()
 {
     han = new Hannota(layers);
     dh = new DrawHan(han);
     dh.Update();
     InitializeComponent();
 }
Example #2
0
 public Form1()
 {
     han = new Hannota(layers);
     dh  = new DrawHan(han);
     dh.Update();
     InitializeComponent();
 }
Example #3
0
 private void Start(object sender, EventArgs e)
 {
     dh.Dispose();
     han = new Hannota(layers);
     dh  = new DrawHan(han);
     dh.Update();
     draw(null, null);
 }
Example #4
0
 //构造方法,初始化绘图数据
 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, };
 }
Example #5
0
 //构造方法,初始化绘图数据
 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,
     };
 }
Example #6
0
 private void Start(object sender, EventArgs e)
 {
     dh.Dispose();
     han = new Hannota(layers);
     dh = new DrawHan(han);
     dh.Update();
     draw(null,null);
 }