Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (tbUsuario.Text == "diego" || tbUsuario.Text == "jesus" && tbContraseña.Text == "1234")
     {
         MenuPrincipal mPrincipal = new MenuPrincipal();
         this.Hide();
         mPrincipal.Show();
     }
     else if (tbUsuario.Text == "david" && tbContraseña.Text == "1234")
     {
         MenuPrincipal mPrincipal = new MenuPrincipal();
         mPrincipal.btRegistrar.Visible = false;
         mPrincipal.btReportes.Visible  = false;
         this.Hide();
         mPrincipal.Show();
     }
     else
     {
         MessageBox.Show("Usuario o contraseña incorrecto");
     }
 }
 public VerEmpleados(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
 public reporteUsuario(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
Exemple #4
0
 public CheckIn(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
Exemple #5
0
 public ModificarEmpleado(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
Exemple #6
0
 public Registrar(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
 public eliminarReserva(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
 public VerHabitaciones(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }
Exemple #9
0
 public ReporteFecha(MenuPrincipal formParent)
 {
     this.formParent = formParent;
     InitializeComponent();
 }