Example #1
0
 private void freeDrawBtn_Click(object sender, EventArgs e)
 {
     figureToDraw = new FreeDraw();
 }
Example #2
0
 private void lineBtn_Click(object sender, EventArgs e)
 {
     figureToDraw = new Line();
 }
Example #3
0
 private void recBtn_Click(object sender, EventArgs e)
 {
     figureToDraw = new Rectangle();
 }
Example #4
0
 public Form1()
 {
     InitializeComponent();
     pen          = Pens.Red;
     figureToDraw = new FreeDraw();
 }