public Point(int x, int y, Redac Rc) { this.x = x; this.y = y; Rc.SBlock += show; Rc.MovePoint += move; }
public BonBlock(int x, int y, char ID, Redac Rc) { this.x = x; this.y = y; this.ID = ID; Rc.SBlock += show; }
public void SetCoord(int a, int b, Redac f1) { f1.SBlock += show; hide(f1); x = a; b = y; show(f1); }
private void pictureBox3_Click(object sender, EventArgs e) // Конструктор { RedF = new Redac(); RedF.Show(); RedF.Activate(); this.Hide(); this.Enabled = false; RedF.SetP(this); }
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); } } } }
public override void show(Redac f1) { blocks = new Bitmap(CP0.Properties.Resources.BonBlock64); f1.dc.DrawImage(blocks, (int)(x * 64), (int)(y * 16)); }
public virtual void show(Redac f1) { blocks = new Bitmap(CP0.Properties.Resources.block); f1.dc.DrawImage(blocks, (int)(x * 64), (int)(y * 16)); }
public void DisagreeS(Redac Rc) { Rc.SBlock -= show; }
public void hide(Redac f1) { point = new Bitmap(CP0.Properties.Resources.Hpoint); f1.dc.DrawImage(point, (int)(y * 64), (int)(x * 16)); }
public void show(Redac f1) { point = new Bitmap(CP0.Properties.Resources.PointPix); f1.dc.DrawImage(point, (int)(y * 64), (int)(x * 16)); }