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(); }
public CheckIn(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }
public ModificarEmpleado(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }
public Registrar(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }
public eliminarReserva(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }
public VerHabitaciones(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }
public ReporteFecha(MenuPrincipal formParent) { this.formParent = formParent; InitializeComponent(); }