Example #1
0
 public Point(int x, int y, Redac Rc)
 {
     this.x        = x;
     this.y        = y;
     Rc.SBlock    += show;
     Rc.MovePoint += move;
 }
Example #2
0
 public BonBlock(int x, int y, char ID, Redac Rc)
 {
     this.x     = x;
     this.y     = y;
     this.ID    = ID;
     Rc.SBlock += show;
 }
Example #3
0
 public void SetCoord(int a, int b, Redac f1)
 {
     f1.SBlock += show;
     hide(f1);
     x = a;
     b = y;
     show(f1);
 }
Example #4
0
 private void pictureBox3_Click(object sender, EventArgs e) // Конструктор
 {
     RedF = new Redac();
     RedF.Show();
     RedF.Activate();
     this.Hide();
     this.Enabled = false;
     RedF.SetP(this);
 }
Example #5
0
        protected void move(Redac f1)
        {
            if (x < 5)
            {
                hide(f1);
                y++;

                if (y >= 9)
                {
                    y = 0; x++;
                    if (x >= 5)
                    {
                        hide(f1);
                        f1.SBlock -= show;
                    }

                    else
                    {
                        show(f1);
                    }
                }
            }
        }
Example #6
0
 public override void show(Redac f1)
 {
     blocks = new Bitmap(CP0.Properties.Resources.BonBlock64);
     f1.dc.DrawImage(blocks, (int)(x * 64), (int)(y * 16));
 }
Example #7
0
 public virtual void show(Redac f1)
 {
     blocks = new Bitmap(CP0.Properties.Resources.block);
     f1.dc.DrawImage(blocks, (int)(x * 64), (int)(y * 16));
 }
Example #8
0
 public void DisagreeS(Redac Rc)
 {
     Rc.SBlock -= show;
 }
Example #9
0
 public void hide(Redac f1)
 {
     point = new Bitmap(CP0.Properties.Resources.Hpoint);
     f1.dc.DrawImage(point, (int)(y * 64), (int)(x * 16));
 }
Example #10
0
 public void show(Redac f1)
 {
     point = new Bitmap(CP0.Properties.Resources.PointPix);
     f1.dc.DrawImage(point, (int)(y * 64), (int)(x * 16));
 }