private void GraficadorForm_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { if (trazo != null) { trazo.Add(new Point(e.X, e.Y)); trazo.Draw(this.CreateGraphics()); } }
private void GraficadorForm_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if (e.Button == MouseButtons.Left) { trazo = new Trazo(color, width); trazo.Add(new Point(e.X, e.Y)); } }