コード例 #1
0
        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;
        }