コード例 #1
0
        public EditProductViewModel(IEditProductDialogService dialogService)
        {
            this._dialogService = dialogService;

            Messenger.Default.Register<ProductModel>(this, OnSelectedProductReceived);

            SaveCommand = new CustomCommand(SaveProduct, CanSaveProduct);
            DeleteCommand = new CustomCommand(DeleteProduct, CanDeleteProduct);
        }
コード例 #2
0
        public EditProductViewModel(IEditProductDialogService dialogService)
        {
            this._dialogService = dialogService;

            Messenger.Default.Register <ProductModel>(this, OnSelectedProductReceived);


            SaveCommand   = new CustomCommand(SaveProduct, CanSaveProduct);
            DeleteCommand = new CustomCommand(DeleteProduct, CanDeleteProduct);
        }
コード例 #3
0
        public CustomerOrdersViewModel(IDataService <OrderModel> orderDataService, IEditProductDialogService editProductDialogservice,
                                       IProductsDialogService productsDialogservice, IDataService <ProductModel> productDataService)
        {
            this._orderDataService          = orderDataService;
            this._productDataService        = productDataService;
            this._editProductsDialogService = editProductDialogservice;
            this._productsDialogService     = productsDialogservice;

            Messenger.Default.Register <CustomerModel>(this, OnUpdateOrderMessageReceived);
            LoadCommands();
        }