예제 #1
0
 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());
     }
 }
예제 #2
0
 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));
     }
 }