private void Addbutton_Click(object sender, EventArgs e) { switch (mainwindow_tabcontrol.SelectedIndex) { case 0: { try { AddUser_Form auf = new AddUser_Form(); auf.Show(); } catch (Exception ex) { MessageBox.Show("Error: " + ex, "OOPS"); } } break; break; } }
private void cd_addUser_menu_Click(object sender, EventArgs e) { AddUser_Form auf1 = new AddUser_Form(); auf1.Show(); }