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

            PopulateOrders();

            View = view;
            view.Model = this;
        }
예제 #2
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;
        }