public ClearEstimateViewModel(IChooseDishesDataService dataService, IDishService DishService, IMessenger messenger)
     : base(messenger)
 {
     _DataService = dataService;
     _IDishService = DishService;
     Init();
 }
 public DishController(IDishService dishservice, IUserService userservice, IDishTypeService dishtypeservice, IImageService imageservice)
 {
     DishSvc = dishservice;
     UserSvc = userservice;
     DishTypeSvc = dishtypeservice;
     ImageSvc = imageservice;
 }
Esempio n. 3
0
 public OrderController(IOrderService orderService, IDishService dishService, ICategoryService categoryService, IOrderStatusService orderStatusService)
 {
     _orderService = orderService;
     _dishService = dishService;
     _categoryService = categoryService;
     _orderStatusService = orderStatusService;
 }
 public AccountController(IUserService userservice, IDishService dishservice, IGeoCoder geocodeservice, IImageService imageservice, IReservationService reservationservice)
 {
     UserSvc = userservice;
     DishSvc = dishservice;
     GeocodeSvc = geocodeservice;
     ImageSvc = imageservice;
     ReservationSvc = reservationservice;
 }
 public BuyDishGivingViewModel(IChooseDishesDataService dataService, IDishService DishService, IMessenger messenger)
     : base(messenger)
 {
     _DataService = dataService;
     _IDishService = DishService;
     //Init();
     
 }
        public DishTypeViewModel(IDishService dishService, IMessenger messenger)
            : base(messenger)
        {
            _DishService = dishService;
            this.Init();//构造目录树
            //初始化时查询所有子类
            this.DisheTypeItem = new ObservableCollection<DishType>(_DishService.LoadSubType());

        }
 public DishesViewModel(IChooseDishesDataService dataService , IDishService DishService ,IMessenger messenger)
     : base(messenger)
 {
     _DataService = dataService;
     _IDishService = DishService;
     IsNotEdit = true;
     //Init();
     //LoadDishBase(0);
     
 }
Esempio n. 8
0
 public StatisticController(IOrderService orderService, IDishService dishService, ICategoryService categoryService)
 {
     _categoryService = categoryService;
     _orderService = orderService;
     _dishService = dishService;
 }
 public SearchController(IDishService dishservice, ISearchService searchservice)
 {
     DishSvc = dishservice;
     SearchSvc = searchservice;
 }
 public FatherDishTypeViewModel(IDishService dishService, IMessenger messenger)
     : base(messenger)
 {
     _DishService = dishService;
     this.Init();//
 }
Esempio n. 11
0
 public HomeController(IDishTypeService dishtypeservice, IUserService userservice, IDishService dishservice)
 {
     DishTypeSvc = dishtypeservice;
     UserSvc = userservice;
     DishSvc = dishservice;
 }
        //结账操作

        public ChooseDishesViewModel(IChooseDishesDataService dataService, IDishService dishService, IMessenger messenger)
            : base(messenger)
        {
            _DataService = dataService;
            _DishService = dishService;
            Init();
            //List<DishType> types = _DishService.LoadFatherType();    //大类
            //List<DishType> subs = _DishService.LoadSubTypeAndDishs();   //小类

            //for (int i = 0; i < 10; i++) {
            //    Dishes.Add(new DishModel("S00" + i, "菜品" + i, 10.09));
            //}
        }
Esempio n. 13
0
 public DishController(ICategoryService categoryService, IDishService dishService, IMarkupService markupService)
 {
     _dishService = dishService;
     _categoryService = categoryService;
     _markupService = markupService;
 }
Esempio n. 14
0
 public DishController(IDishService dishService, IRestaurantService restaurantService)
 {
     this.dishService = dishService;
     this.restaurantService = restaurantService;
 }
 public ReservationController(IReservationService reservationservice, IUserService userservice, IDishService dishservice)
 {
     ReservationSvc = reservationservice;
     UserSvc = userservice;
     DishSvc = dishservice;
 }
Esempio n. 16
0
 public DisplayService()
 {
     this.dishService = new DishService();
 }
        public DishesUnitViewModel(IDishService _IDishService, IMessenger messenger)
            : base(messenger)
        {
            this._DishService = _IDishService;

            this.Init();
        }
Esempio n. 18
0
 public DisplayService(IDishService dishService)
 {
     this.dishService = dishService;
 }
Esempio n. 19
0
 public UserController(IUserService userservice, IDishService dishservice)
 {
     UserSvc = userservice;
     DishSvc = dishservice;
 }
 public DishesWayRefViewModel(IDischesWayRefService dataService,IDishesWayDataService dishesWaySercice,IChooseDishesDataService chooseDishesService,IDishService dishService, IMessenger messenger)
     : base(messenger)
 {
     _DataService = dataService;
     _DishesWaySercice = dishesWaySercice;
     _ChooseDishesService=chooseDishesService;
     _DishService = dishService;
     //MessageBox.Show("在初始化做法");
     InitTreeByDishData();
 }
Esempio n. 21
0
 public MainController(IDishService dishService, ICategoryService categoryService)
 {
     _dishService = dishService;
     _categoryService = categoryService;
 }