private void OnRegistrationMenuItem_Click(object sender, EventArgs e) { using (var dlg = new RegistrationDialog(true)) { dlg.ShowDialog(); } }