public OrdersEditorPresentationModel(OrdersCommandProxy commandProxy, IOrdersRepository ordersRepository)
        {
            this.commandProxy = commandProxy;
            this.ordersRepository = ordersRepository;
            Orders = new ObservableCollection<OrderPresentationModel>();

            PopulateOrders();
        }
        public OrdersEditorPresentationModel(OrdersEditorView view, OrdersCommandProxy commandProxy)
        {
            this.commandProxy = commandProxy;
            Orders = new ObservableCollection<OrderPresentationModel>();

            PopulateOrders();

            View = view;
            view.Model = this;
        }
Пример #3
0
        public OrdersEditorPresentationModel(OrdersEditorView view, IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy = commandProxy;
            this.Orders = new ObservableCollection<OrderPresentationModel>();
            this.PopulateOrders();

            this.View = view;
            view.Model = this;
        }
Пример #4
0
        public OrdersEditorPresentationModel(OrdersEditorView view, IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy     = commandProxy;
            this.Orders           = new ObservableCollection <OrderPresentationModel>();
            this.PopulateOrders();

            this.View  = view;
            view.Model = this;
        }
Пример #5
0
        public OrdersEditorPresentationModel(OrdersEditorView view, OrdersCommandProxy commandProxy)
        {
            this.commandProxy = commandProxy;
            Orders            = new ObservableCollection <OrderPresentationModel>();

            PopulateOrders();

            View       = view;
            view.Model = this;
        }
Пример #6
0
        public OrdersEditorViewModel(IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            _ordersRepository = ordersRepository;
            _commandProxy     = commandProxy;

            PopulateOrders();

            Orders = new ListCollectionView(_orders);
            Orders.CurrentChanged += SelectedOrder_Changed;
            Orders.MoveCurrentTo(null);

            ProcessOrderCommand = new DelegateCommand <object>(ProcessOrder);
        }
Пример #7
0
        public OrdersEditorViewModel(IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy     = commandProxy;

            // Create dummy order data.
            this.PopulateOrders();

            // Initialize a CollectionView for the underlying Orders collection.
            this.Orders = new ListCollectionView( _orders );

            // Track the current selection.
            this.Orders.CurrentChanged += SelectedOrderChanged;
            this.Orders.MoveCurrentTo(null);

            this.ProcessOrderCommand = new DelegateCommand<object>(ProcessOrder);
        }
Пример #8
0
        public OrdersEditorViewModel(IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy     = commandProxy;

            // Create dummy order data.
            this.PopulateOrders();

            // Initialize a CollectionView for the underlying Orders collection.
            this.Orders = new ListCollectionView(_orders);

            // Track the current selection.
            this.Orders.CurrentChanged += SelectedOrderChanged;
            this.Orders.MoveCurrentTo(null);

            this.ProcessOrderCommand = new DelegateCommand <object>(ProcessOrder);
        }
        public OrdersEditorPresentationModel( IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy )
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy     = commandProxy;

            // Create dummy order data.
            this.PopulateOrders();

            // Initialize a CollectionView for the underlying Orders collection.
#if SILVERLIGHT
            this.Orders = new PagedCollectionView( _orders );
#else
            this.Orders = new ListCollectionView( _orders );
#endif
            // Track the current selection.
            this.Orders.CurrentChanged += SelectedOrderChanged;
        }
        public OrdersEditorPresentationModel(IOrdersRepository ordersRepository, OrdersCommandProxy commandProxy)
        {
            this.ordersRepository = ordersRepository;
            this.commandProxy     = commandProxy;

            // Create dummy order data.
            this.PopulateOrders();

            // Initialize a CollectionView for the underlying Orders collection.
#if SILVERLIGHT
            this.Orders = new PagedCollectionView(_orders);
#else
            this.Orders = new ListCollectionView(_orders);
#endif
            // Track the current selection.
            this.Orders.CurrentChanged += SelectedOrderChanged;
            this.Orders.MoveCurrentTo(null);
        }
 public OrdersToolbarPresentationModel(OrdersCommandProxy ordersCommands)
 {
     SaveAllOrdersCommand = ordersCommands.SaveAllOrdersCommands;
 }