private void menuItem7_Click(object sender, System.EventArgs e) { DialogResult dr; WidthForm f = new WidthForm(); f.SelectedWidth = width; dr = f.ShowDialog(); if (dr == DialogResult.OK) { width = f.SelectedWidth; } }
private void WidthMenuItem_Click(object sender, System.EventArgs e) { DialogResult dr; WidthForm dlg = new WidthForm(); dlg.SelectedWidth = width; dr = dlg.ShowDialog(); if (dr == DialogResult.OK) { width = dlg.SelectedWidth; } }