public void Application_Startup(object sender, StartupEventArgs e) { //C'est ici, dans la méthode Application_Startup, qu'on instancie nos objets Dbal et Dao mydbal = new Dbal("Escp_Game"); thedaoclients = new DaoClient(mydbal); thedaotheme = new DaoTheme(mydbal); thedaoavis = new DaoAvis(mydbal, thedaoclients, thedaotheme); thedaoobstacles = new DaoObstacle(mydbal, thedaotheme); thedaoville = new DaoVille(mydbal); thedaosalles = new DaoSalle(mydbal, thedaoville, thedaotheme); thedaoutilisateurs = new DaoUtilisateur(mydbal, thedaoville); thedaoreservation = new DaoReservation(mydbal, thedaoclients, thedaosalles, thedaoutilisateurs, thedaotheme); thedaoplacement = new DaoPlacement_Obst(mydbal, thedaoreservation, thedaoobstacles); thedaoheure = new DaoHeure(mydbal); // Create the startup window //là, on lance la fenêtre souhaitée en instanciant la classe de notre fenêtre directeur wnd = new directeur(thedaoavis, thedaoclients, thedaoobstacles, thedaoplacement, thedaoreservation, thedaosalles, thedaotheme, thedaoutilisateurs, thedaoville, thedaoheure); //et on utilise la méthode Show() de notre objet fenêtre pour afficher la fenêtre //exemple: MainWindow lafenetre = new MainWindow(); (et on y passe en paramètre Dbal et Dao au besoin) wnd.Show(); }
public ActionResult Inscription(Utilisateur utilisateur) { DaoUtilisateur ubd = new DaoUtilisateur(); ubd.AjoutUtilisateur(utilisateur); ViewBag.Message = "==========Votre Inscription s'est bien déroulée ============="; return(RedirectToAction("Inscription")); }
public Connexion(DaoClient theDaoClient, DaoTransaction theDaoTransaction, DaoUtilisateur theDaoUtilisateur, DaoVille theDaoVille) { vmDaoVille = theDaoVille; vmDaoUser = theDaoUtilisateur; listUser = new List <Utilisateur>(vmDaoUser.SelectAll()); vmDaoClient = theDaoClient; vmDaoTransac = theDaoTransaction; InitializeComponent(); }
private void Application_Startup(object sender, StartupEventArgs e) { mydbal = new Dbal("Escp_Game"); theDaoAvis = new DaoAvis(mydbal, theDaoClient, theDaoTheme); theDaoClient = new DaoClient(mydbal); theDaoObstacle = new DaoObstacle(mydbal, theDaoTheme); theDaoPObstacle = new DaoPlacement_Obst(mydbal, theDaoReservation, theDaoObstacle); theDaoReservation = new DaoReservation(mydbal, theDaoClient, theDaoSalle, theDaoUtilisateur, theDaoTheme); theDaoSalle = new DaoSalle(mydbal, theDaoVille, theDaoTheme); theDaoTheme = new DaoTheme(mydbal); theDaoTransaction = new DaoTransaction(mydbal, theDaoClient, theDaoReservation); theDaoUtilisateur = new DaoUtilisateur(mydbal, theDaoVille); theDaoVille = new DaoVille(mydbal); }
private void Application_Startup(object sender, StartupEventArgs e) { mydbal = new Dbal("escp_Game"); theDaoClient = new DaoClient(mydbal); theDaoVille = new DaoVille(mydbal); theDaoTheme = new DaoTheme(mydbal); theDaoUtilisateur = new DaoUtilisateur(mydbal, theDaoVille); theDaoSalle = new DaoSalle(mydbal, theDaoVille, theDaoTheme); theDaoReservation = new DaoReservation(mydbal, theDaoClient, theDaoSalle, theDaoUtilisateur, theDaoTheme); theDaoTransaction = new DaoTransaction(mydbal, theDaoClient, theDaoReservation); //bool res = false; Connexion wndco = new Connexion(theDaoClient, theDaoTransaction, theDaoUtilisateur, theDaoVille); wndco.Show(); }
public ControllerUtilisateur(DaoUtilisateur utilisateurDao, ControllerMenu controllerMenu) { vueLogin = new VueLogin(this); _utilisateurDao = utilisateurDao; _controllerMenu = controllerMenu; }
public ControllerMenu(DaoUtilisateur utilisateurDao) { vueMenu = new VueMenu(this); _utilisateurDao = utilisateurDao; }
public directeur(DaoAvis thedaoavis, DaoClient thedaoclient, DaoObstacle thedaoobstacle, DaoPlacement_Obst thedaoPlacement_Obst, DaoReservation theDaoReservation, DaoSalle thedaosalle, DaoTheme thedaotheme, DaoUtilisateur thedaoutilisateur, DaoVille thedaoville, DaoHeure thedaoheure) { InitializeComponent(); Globale.DataContext = new viewModel.viewModelSalles(thedaoavis, thedaoclient, thedaoobstacle, thedaoPlacement_Obst, theDaoReservation, thedaosalle, thedaotheme, thedaoutilisateur, thedaoville, thedaoheure); grid1.Visibility = Visibility.Hidden; grid2.Visibility = Visibility.Hidden; grid3.Visibility = Visibility.Hidden; grid4.Visibility = Visibility.Hidden; HOME.Visibility = Visibility.Visible; }