Esempio n. 1
0
File: Form1.cs Progetto: Puz/BaCeHuH
 private void MainScreen_MouseLeave(object sender, EventArgs e)
 {
     tempShape = null;
     this.Refresh();
 }
Esempio n. 2
0
File: Form1.cs Progetto: Puz/BaCeHuH
 private void MainScreen_MouseMove(object sender, MouseEventArgs e)
 {
     if (rb_Cross.Checked)
     {
         tempShape = (new Cross(e.X, e.Y));
     }
     if (rb_Circle.Checked)
     {
         if (!IsShapeStart)
         {
             tempShape = new Circle(ShapeStart, e.Location);
         }
     }
     else
     {
         if (!IsShapeStart)
         {
             tempShape = new Line(ShapeStart, e.Location);
         }
     }
     this.Refresh();
 }
Esempio n. 3
0
File: Form1.cs Progetto: Puz/BaCeHuH
 private void AddShape(Shape shape)
 {
     Shapes.Add(shape);
     ShapesList.Items.Add(shape.DescriptionString);
 }