예제 #1
0
 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();
     }
 }
예제 #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();
     }
 }
예제 #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();
     }
 }