Example #1
0
 public NoAccountViewModel()
 {
     _meniuri             = meniuBLL.GetAllMeniu();
     _preparate           = preparateBLL.GetAllPreparate();
     _alergeni            = alergeniBLL.GetAllAlergeni();
     _meniuriCuPreparate  = new Dictionary <Meniu, ObservableCollection <MeniuriCuPreparate> >();
     _preparateCuAlergeni = new Dictionary <Alergeni, ObservableCollection <Preparate> >();
     AddPreparateDinMeniuri();
     AddPreparateDinAlergeni();
 }
Example #2
0
        public ClientLoggedInViewModel()
        {
            _meniuri            = meniuBLL.GetAllMeniu();
            _preparate          = preparateBLL.GetAllPreparate();
            _preparateCuMeniuri = new Dictionary <Meniu, ObservableCollection <Preparate> >();
            _preparateComandate = preparateComandateBLL.GetAllPreparateComandate();
            AddPreparateInMeniu();

            AddMeniuInComandaCommand = new AddMeniuInComandaCommand(this);
            AddPreparatInComand      = new AddPreparatInComandaCommand(this);
            PlaseazaComandaCommand   = new PlaseazaComandaCommand(this);
        }
        public EmployeeLoggedInViewModel()
        {
            _categorii = categoriiDePreparateBLL.GetAllCategorii();
            _preparate = preparateBLL.GetAllPreparate();
            _meniuri   = meniuBLL.GetAllMeniu();
            _alergeni  = alergeniBLL.GetAllAlergeni();
            //_meniuriCuPreparate = meniuriCuPreparateBLL.GetAllMeniuriCuPreparate();
            AddPreparateDinMeniuri();

            AddCategorieCommand    = new AddCategorieCommand(this);
            DeleteCategorieCommand = new DeleteCategorieCommand(this);

            AddPreparatCommand    = new AddPreparatCommand(this);
            DeletePreparatCommand = new DeletePreparatCommand(this);

            AddMeniuCommand    = new AddMeniuCommand(this);
            DeleteMeniuCommand = new DeleteMeniuCommand(this);

            AddAlergeniCommand    = new AddAlergeniCommand(this);
            DeleteAlergeniCommand = new DeleteAlergeniCommand(this);

            GetPreparateDinMeniuriCommand = new GetPreparateDinMeniuriCommand(this);
        }