private void buttonNew_Click(object sender, EventArgs e) { NewOrder newOrder = new NewOrder(); var newOrderPresenter = new NewOrderPresenter(newOrder, NewVisitBillingNumber); newOrder.ShowDialog(); }
private void buttonAddOrder_Click(object sender, EventArgs e) { var newOrder = new NewOrder(); VisitForGrid focusedVisit = (VisitForGrid)gridViewVisits.GetFocusedRow(); var newOrderPresenter = new NewOrderPresenter(newOrder, focusedVisit.BillingNumber); newOrder.ShowDialog(); }
public void ShowNewOrder() { var view = new NewOrder(this); var model = new NewOrderModel(session); var presenter = new NewOrderPresenter(model, view); ShowControl(view); }
public NewOrderView() { InitializeComponent(); presenter = new NewOrderPresenter(this); }