Exemplo n.º 1
0
        private void AddNewItem()
        {
            domain.Bill dmBill = new domain.Bill();

            BillViewModel vm = CreateVM(this.container, dmBill);

            this.billService.Add(dmBill);
            this.billList.Add(vm);
            this.SelectedItem = vm;


        }
Exemplo n.º 2
0
        public BillViewModel(BillService billService,
            ProductService productService,
            domain.Bill domainBill,
            IEventAggregator eventAggregator)
        {
            this.eventAggregator = eventAggregator;
            this.billService = billService;
            this.productService = productService;
            this.domainBill = domainBill;
            this.domainBill.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(domainBill_PropertyChanged);

            this.BillItemVMList = BuildBillItemVmList(this.domainBill);
        
        }