private void buttonConfigure_Click(object sender, EventArgs e) { using (ConfigForm dlg = new ConfigForm()) { dlg.ShowDialog(); } }