Exemple #1
0
        private void buttonNew_Click(object sender, EventArgs e)
        {
            invoiceForm form = new invoiceForm(this.context);

            form.ShowDialog(this);
            loadList();
        }
Exemple #2
0
 private void editSelection()
 {
     try
     {
         foreach (ListViewItem item in listView.SelectedItems)
         {
             int         id      = Convert.ToInt16(item.Tag);
             Invoice     invoice = new Invoice(id);
             invoiceForm form    = new invoiceForm(this.context, invoice);
             form.ShowDialog(this);
             loadList();
         }
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to load invoice\n" + ex.Message);
     }
 }
        private void toolStripButtonNewInvoice_Click(object sender, EventArgs e)
        {
            invoiceForm form = new invoiceForm(context);

            form.ShowDialog(this);
        }
 private void editSelection()
 {
     try
     {
         foreach (ListViewItem item in listView.SelectedItems)
         {
             int id = Convert.ToInt16(item.Tag);
             Invoice invoice = new Invoice(id);
             invoiceForm form = new invoiceForm(this.context, invoice);
             form.ShowDialog(this);
             loadList();
         }
     }
     catch (Exception ex)
     {
         Tools.ShowError("Unable to load invoice\n" + ex.Message);
     }
 }
 private void buttonNew_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(this.context);
     form.ShowDialog(this);
     loadList();
 }
 private void toolStripButtonNewInvoice_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(context);
     form.ShowDialog(this);
 }