示例#1
0
        public void Execute(object parameter)
        {
            _catalog.Delete(_orderMasterDetailsViewModel.ItemViewModelSelected.DomainObject.Key);

            _orderMasterDetailsViewModel.ItemViewModelSelected = null;

            _orderMasterDetailsViewModel.RefreshOrderItemViewModelCollection();
            _catalog.Save();
        }
示例#2
0
        public void DeleteOrder()
        {
            _orderCatalog.Delete(_orderFK).Wait();
            _customerCatalog.Delete(_customerFK).Wait();

            Order _order;

            _orderCatalog.Data.TryGetValue(_orderFK, out _order);

            Customer _customer;

            _customerCatalog.Data.TryGetValue(_customerFK, out _customer);

            Assert.AreEqual(null, _order);
            Assert.AreEqual(null, _customer);
        }
示例#3
0
 public void Execute(object parameter)
 {
     _orderCatalog.Delete(_orderMasterDetailsViewModel.ItemViewModelSelected.Key);
     _orderCatalog.Create(new Orders(_orderMasterDetailsViewModel.ItemViewModelSelected.CaseOwner,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.OrderName,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.OrderInfo,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Price,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Materials,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Production,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Measurements,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.NumberOfItems,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.DeliveryInfo,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Media1,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Media2,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Laminat1,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Laminat2,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.Measurements2,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.DtpPrice,
                                     _orderMasterDetailsViewModel.ItemViewModelSelected.SpecialOrderInfo));
     _orderMasterDetailsViewModel.RefreshOrderItemViewModelCollection();
     _orderCatalog.Save();
 }
示例#4
0
        public async void Clear(int CustomerFK, int OrderFK)
        {
            await _customerCatalog.Delete(CustomerFK);

            await _orderCatalog.Delete(OrderFK);
        }