Example #1
0
        public Tbutterfly(int ro, int cu, int r, int c)
            : base(r, c)
        {
            row     = ro;
            culmn   = cu;
            Width  *= 3;
            Height *= 2;
            Image   = System.Drawing.Image.FromFile(Directory.GetCurrentDirectory() + @"\pictures" + @"\" + "butterfly[2].jpg");
            Ball    = new Tball(row + 1, 0);
            ball    = new Tball[3];
            for (int i = 0; i < 3; i++)
            {
                ball[i] = new Tball(row, culmn + i + 2);
            }
            changepic();
            Ball.Image = ball[1].Image;
            Ball.num   = ball[1].num;

            //ball[1] = new Tball(row,0);
            // ball[2] = new Tball(row,1);
        }
Example #2
0
 public void insertball(Tball b, int p)
 {
     lb.Insert(p, b);
 }
Example #3
0
        public void Add_new_Ball()
        {
            Tball b = new Tball(lp);

            lb.Add(b);
        }