Esempio n. 1
0
        public OrderAddComand(Order order)
        {
            _order            = order;
            _orders           = OrderCatalog.Instance;
            _unapprovedOrders = _orders.UnapprovedOrders;

            _customerCatalog = CustomerCatalog.Instance;
            _customers       = _customerCatalog.Customers;
        }
Esempio n. 2
0
        public OrderVM()
        {
            _newOrder     = new Order();
            _orderCatalog = OrderCatalog.Instance;

            _displayedOrders  = _orderCatalog.CurrentOrders;
            _displayedOrders2 = _orderCatalog.UnapprovedOrders;

            _deleteCommand = new RelayCommand(Delete, OrderIsSelected);
            _editCommand   = new RelayCommand(Edit, OrderIsSelected);

            _changeListHistoryCommand = new RelayCommand(ChangeListHistory, AlwaysTrue);
            _changeListCurrentCommand = new RelayCommand(ChangeListCurrent, AlwaysTrue);

            _moveOrderToHistoryCommand    = new RelayCommand(MoveOrderToHistory, AlwaysTrue);
            _moveOrderToCurrentCommand    = new RelayCommand(MoveOrderToCurrent, AlwaysTrue);
            _moveOrderToUnapprovedCommand = new RelayCommand(MoveOrderToUnapproved, AlwaysTrue);
            _moveOrderToInvoiceCommand    = new RelayCommand(MoveOrderToInvoice, AlwaysTrue);
        }