private void buttonRegresar_Click(object sender, EventArgs e) { MySqlCommand cm = new MySqlCommand("Select * from usuarios WHERE id ='" + Login.id + "'", Conexion.ObtenerConexion()); MySqlDataAdapter da = new MySqlDataAdapter(cm); DataTable dt = new DataTable(); da.Fill(dt); if (dt.Rows[0]["area"].ToString() == "Gerente") { MenuGerente gerente = new MenuGerente(); gerente.Show(); this.Hide(); } else if (dt.Rows[0]["area"].ToString() == "Veterinaria") { MenuVeterinarios veterinarios = new MenuVeterinarios(); veterinarios.Show(); this.Hide(); } else if (dt.Rows[0]["area"].ToString() == "Caja") { MenuCaja caja = new MenuCaja(); caja.Show(); this.Hide(); } else if (dt.Rows[0]["area"].ToString() == "Almacen") { MenuAlmacen almacen = new MenuAlmacen(); almacen.Show(); this.Hide(); } else if (dt.Rows[0]["area"].ToString() == "Compras") { } else if (dt.Rows[0]["area"].ToString() == "Grooming") { MenuGrooming grooming = new MenuGrooming(); grooming.Show(); this.Hide(); } }