private void nuevoBtn_Click(object sender, EventArgs e)
 {
     try
     {
         Crear_Usuario_Form childForm = new Crear_Usuario_Form();
         childForm.ShowDialog();
         usuarioBS.DataSource = user.GetUsers();
         usuarioDGW.DataSource = usuarioBS;
         criterioCbx.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         Error_Form er = new Error_Form(ex.Message);
         er.Show();
     }
 }
Beispiel #2
0
 private void registrarUsuarioTsm_Click(object sender, EventArgs e)
 {
     try
     {
         USUARIO user = (USUARIO)Program.Cache.Get("user");
         if (user != null)
         {
             Crear_Usuario_Form childForm = new Crear_Usuario_Form();
             childForm.MdiParent = this;
             childForm.Show();
         }
         else MessageBox.Show("Usted No se ha Autenticado dentro del sistema.", "Operacion invalida", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         Error_Form er = new Error_Form(ex.Message);
         er.MdiParent = this;
         er.Show();
     }
 }
Beispiel #3
0
 private void CrearUsuario_Click(object sender, EventArgs e)
 {
     try
     {
         Crear_Usuario_Form childForm = new Crear_Usuario_Form();
         childForm.MdiParent = this;
         childForm.Show();
     }
     catch (Exception ex)
     {
         Error_Form er = new Error_Form(ex.Message);
         er.MdiParent = this;
         er.Show();
     }
 }