private void ClearButton_Click(object sender, EventArgs e) { g = this.CreateGraphics(); DrawBox drawbox = new DrawBox(g); drawbox.Clear(); }
private void CreateButton_Click(object sender, EventArgs e) { g = this.CreateGraphics(); DrawBox drawbox = new DrawBox(g); drawbox.DoIt(int.Parse(WidthTextBox.Text), int.Parse(HeightTextBox.Text)); }