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