public OrderCompositePresentationModel(IOrderCompositeView orderCompositeView, IOrderDetailsPresentationModel orderDetailsPresentationModel, IOrderCommandsView orderCommandsView) { this.orderDetailsPresentationModel = orderDetailsPresentationModel; this.orderDetailsPresentationModel.CloseViewRequested += _orderPresenter_CloseViewRequested; this.view = orderCompositeView; orderCommandsView.SetModel(this.orderDetailsPresentationModel); this.OrderDetailsView = this.orderDetailsPresentationModel.View; this.OrderCommandsView = orderCommandsView; this.view.SetModel(this); }
public OrderCompositePresentationModel(IOrderCompositeView orderCompositeView, IOrderDetailsPresentationModel orderDetailsPresentationModel, OrderCommandsView orderCommandsView) { _orderDetailsPresentationModel = orderDetailsPresentationModel; _orderDetailsPresentationModel.CloseViewRequested += _orderPresenter_CloseViewRequested; _view = orderCompositeView; orderCommandsView.Model = _orderDetailsPresentationModel; this.OrderDetailsView = _orderDetailsPresentationModel.View; this.OrderCommandsView = orderCommandsView; _view.IsActiveChanged += compositeView_IsActiveChanged; _view.Model = this; }
public void SetModel(IOrderDetailsPresentationModel model) { DataContext = model; }
public void SetModel(IOrderDetailsPresentationModel model) { this.Model = model; }