private List <OrderItemViewModel> CreateItemViewModelCollection(OrderCatalog catalog) { List <OrderItemViewModel> items = new List <OrderItemViewModel>(); foreach (var obj in catalog.Orders) { items.Add(new OrderItemViewModel(obj)); } return(items); }
public Customer(string nam, string adr, string ph, string email) { _id = NextId; NextId++; _name = nam; _adress = adr; _email = email; _phone = ph; _orders = new OrderCatalog($"{Id}{Name}"); }
public OrderMasterDetailsViewModel() { _catalog = new OrderCatalog(); _orderItemViewModelSelected = new OrderItemViewModel(new Orders()); _deleteCommand = new DeleteOrderCommand(_catalog, this); _newOrderCommand = new NewOrderCommand(_catalog, this); _saveCommand = new SaveOrderCommand(_catalog); _refreshCommand = new RefreshOrderCommand(this, _catalog); _catalog.Load(); }
public SaveOrderCommand(OrderCatalog catalog) { _catalog = catalog; }
public DeleteOrderCommand(OrderCatalog catalog, OrderMasterDetailsViewModel viewModel) { _catalog = catalog; _orderMasterDetailsViewModel = viewModel; }
public RefreshOrderCommand(OrderMasterDetailsViewModel mdvm, OrderCatalog catalog) { _catalog = catalog; _orderMasterDetailsViewModel = mdvm; }
public OrderModel(OrderCatalog oCatalog) { _oCatalog = oCatalog; }
public RemoveOrderModel(OrderCatalog oCatalog) { RemoveOrder = new Order(); _oCatalog = oCatalog; }
public OrderSaveCmd(OrderCatalog catalog) { _catalog = catalog; }
public EditOrderModel() { catalog = OrderCatalog.Instance; }
public EditOrderCommand(OrderCatalog orderCatalog, OrderMasterDetailsViewModel mdvm) { _orderCatalog = orderCatalog; _orderMasterDetailsViewModel = mdvm; }
public EditOrderModel(OrderCatalog oCatalog) { EditOrder = new Order(); _oCatalog = oCatalog; }
public GetAllOrdersModel() { catalog = OrderCatalog.Instance; }
public DashboardModel() { catalog = ProductCatalog.Instance; ocatalog = OrderCatalog.Instance; }
public NewOrderCommand(OrderCatalog catalog, OrderMasterDetailsViewModel mdvm) { _catalog = catalog; _orderMasterDetailsViewModel = mdvm; }
public CreateOrderModel(OrderCatalog oCatalog) { _oCatalog = oCatalog; }
public OrderTest() { _orderCatalog = OrderCatalog.Instance; _customerCatalog = CustomerCatalog.Instance; }