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

            form.ShowDialog(this);
            loadList();
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
        private void toolStripButtonNewInvoice_Click(object sender, EventArgs e)
        {
            invoiceForm form = new invoiceForm(context);

            form.ShowDialog(this);
        }
Exemplo n.º 4
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);
     }
 }
Exemplo n.º 5
0
 private void buttonNew_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(this.context);
     form.ShowDialog(this);
     loadList();
 }
Exemplo n.º 6
0
 private void toolStripButtonNewInvoice_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(context);
     form.ShowDialog(this);
 }