private void lineAndTextButton_Click(object sender, EventArgs e) { try { typeEdit = "drawLineAndText"; stf.Show(); timer1.Enabled = true; } catch(System.ObjectDisposedException) { stf = new setTextForm(); stf.Show(); } }
private void editButton_Click(object sender, EventArgs e) { try { typeEdit = "edit"; stf.Show(); timer1.Enabled = true; bx = by = 1000; } catch (System.ObjectDisposedException) { stf = new setTextForm(); stf.Show(); } }