private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (pointer == false) { canDraw = true; begin = new clsDiem(e.X, e.Y); rect.X = begin.x; rect.Y = begin.y; } }
private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (canDraw == true) { end = new clsDiem(e.X, e.Y); g.Clear(pictureBox1.BackColor); if (pointer) { return; } else if (isLine == true) { g.DrawLine(pen, begin.x, begin.y, e.X, e.Y); } Update(); } }
public triangular(clsDiem A, clsDiem B, clsDiem C) { begin = A; end = B; fe = C; }
public triangular() { begin = new clsDiem(0, 0); end = new clsDiem(0, 0); fe = new clsDiem(0, 0); }
public Line(clsDiem A, clsDiem B) { begin = A; end = B; }
public Line() { begin = new clsDiem(0, 0); end = new clsDiem(0, 0); }