private void clear_Click(object sender, EventArgs e) { mytype = drawtype.arrow; Ellipses.Clear(); Lines.Clear(); Rectangles.Clear(); g.Clear(Color.White); }
private void thepen_Click(object sender, EventArgs e) { mytype = drawtype.pen; }
private void recta_Click(object sender, EventArgs e) { mytype = drawtype.rectangle; }
private void ellipse_Click(object sender, EventArgs e) { mytype = drawtype.ellipse; }
private void line_Click(object sender, EventArgs e) { mytype = drawtype.line; }
private void arrow_Click(object sender, EventArgs e) { mytype = drawtype.arrow; }