コード例 #1
0
ファイル: viewModelPlanning.cs プロジェクト: Mael-Ch/PPE3
        public viewModelPlanning(DaoFacture daoFacture, DaoClient daoClient, DaoSite daoSite, DaoSalle daoSalle, DaoPartie daoPartie, DaoHoraire daoHoraire,
                                 DaoObstacle daoObstacle, DaoJoueur daoJoueur, Planning planning)
        {
            _wnd = planning;

            _daoFacture  = daoFacture;
            _daoClient   = daoClient;
            _daoHoraire  = daoHoraire;
            _daoPartie   = daoPartie;
            _daoSalle    = daoSalle;
            _daoSite     = daoSite;
            _daoObstacle = daoObstacle;
            _daoJoueur   = daoJoueur;

            _listPlanning      = new ObservableCollection <Partie>();
            _listSalles        = new ObservableCollection <Salle>();
            ListSites          = new ObservableCollection <Site>(_daoSite.GetAllSite());
            _listClient        = new ObservableCollection <Client>(daoClient.GetAllClient());
            DatePlanning       = DateTime.Now;
            researchTextClient = "";
        }