Ejemplo n.º 1
0
 private void lstInvoices_DoubleClick(object sender, EventArgs e)
 {
     if (listViewInvoices.SelectedItems.Count > 0)
     {
         invoiceForm = new frmInvoice(entities, (invoiceheader)listViewInvoices.SelectedItems[0].Tag);
         invoiceForm.Show();
         invoiceForm.Focus();
     }
 }
Ejemplo n.º 2
0
 private void btnAddInvoice_Click(object sender, EventArgs e)
 {
     //todo - open an invoice edit form (fill hidden data with default values)
     if ((invoiceForm == null) || invoiceForm.IsDisposed)
     {
         invoiceForm = new frmInvoice(entities);
     }
     invoiceForm.Show();
     invoiceForm.Focus();
 }