Пример #1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     foreach (var l in Program.inicial().empleados)
     {
         if (usuario.Text == l.nombre && pasword.Text == (l.dni).ToString())
         {
             principal i = new principal();
             i.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("NOMBRE DE USUARIO O CONTRASEÑA NO VALIDA", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }
Пример #2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     this.Close();
     l.Show();
 }
Пример #3
0
 private void Matenimiento_FormClosing(object sender, FormClosingEventArgs e)
 {
     l.Show();
 }
Пример #4
0
 private void Informes_FormClosing(object sender, FormClosingEventArgs e)
 {
     l.Show();
 }
Пример #5
0
 private void Compras_FormClosed(object sender, FormClosedEventArgs e)
 {
     l.Show();
 }