예제 #1
0
 private void Form1_MouseMove(object sender, MouseEventArgs e)
 {
     if (rb_cross.Checked) TempShape = new Cross(e.X, e.Y);
     else if (rb_line.Checked)
     {
         if (!IsShapeStart)
         {
             TempShape = new Line(ShapeStart, e.Location);
         }
     }
     else if (rb_circle.Checked)
     {
         if (!IsShapeStart)
         {
             TempShape = new Circle(ShapeStart, e.Location);
         }
     }
     this.Refresh();
 }
예제 #2
0
 private void AddShape(Shape s)
 {
     Shapes.Add(s);
     Shapes_List.Items.Add(s.ConfString);
 }
예제 #3
0
 private void rb_CheckedChanged(object sender, EventArgs e)
 {
     TempShape = null;
     IsShapeStart = true;
 }