public NewUserViewModel ShowAddUserDialog()
        {
            frmNewUser newUser = new frmNewUser();

            newUser.ShowDialog();
            return(newUser.Tag as NewUserViewModel);
        }
Beispiel #2
0
 private void newToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     try
     {
         frmNewUser newUserForm = new frmNewUser();
         newUserForm.MdiParent = this;
         newUserForm.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }