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; }
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; }
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; }
public OrdersEditorPresentationModel(OrdersEditorView view, OrdersCommandProxy commandProxy) { this.commandProxy = commandProxy; Orders = new ObservableCollection <OrderPresentationModel>(); PopulateOrders(); View = view; view.Model = this; }
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); }
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 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; }