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