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