Example #1
0
        public AddIngridientViewModel() : base()
        {
            listUnitModel = new ListUnitModel();
            listUnitModel.LoadAllUnit();

            CancelCommand        = new DelegateCommand(Cancel);
            AddIngridientCommand = new DelegateCommand(AddIngridient);
            AddImageCommand      = new DelegateCommand(ShowOpenDialog);
        }
        public AddProductViewModel() : base()
        {
            listProductTypeModel = new ListProductTypeModel();
            listProductTypeModel.LoadAllProductType();

            listUnitModel = new ListUnitModel();
            listUnitModel.LoadAllUnit();

            CancelCommand     = new DelegateCommand(Cancel);
            AddProductCommand = new DelegateCommand(AddProduct);
            AddImageCommand   = new DelegateCommand(ShowOpenDialog);
        }