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(); }
private void buttonOpen_Click(object sender, EventArgs e) { var newOrderEdit = new NewOrder(true); var newOrderEditPresenter = new NewOrderEditPresenter(newOrderEdit, (DtoOrder)gridView1.GetFocusedRow()); newOrderEdit.ShowDialog(); }
private void buttonNew_Click(object sender, EventArgs e) { NewOrder newOrder = new NewOrder(); var newOrderPresenter = new NewOrderPresenter(newOrder, NewVisitBillingNumber); newOrder.ShowDialog(); }