private void btnRegistration_Click(object sender, EventArgs e) { try { FrmRegistration registration = new FrmRegistration(); registration.ShowDialog(); } catch (System.IO.IOException) { MessageBox.Show("Sistem ne moze da pokrene formu!"); return; } }
private void registrationToolStripMenuItem1_Click(object sender, EventArgs e) { FrmRegistration frm = new FrmRegistration(); frm.ShowDialog(this); }