private void btnButtons_Click(object sender, EventArgs e) { ButtonsEditor editor = new ButtonsEditor(); var res = editor.ShowDialog(this); if (res == DialogResult.OK) { } }
private void btnButtons_Click(object sender, EventArgs e) { ButtonsEditor editor = new ButtonsEditor(CurrentControlSet); var res = editor.ShowDialog(this); if (res == DialogResult.OK) { } editor.Dispose(); }