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

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

            form.ShowDialog(this);
        }
コード例 #4
0
ファイル: invoicesForm.cs プロジェクト: Trexis/financemanager
 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);
     }
 }
コード例 #5
0
ファイル: invoicesForm.cs プロジェクト: Trexis/financemanager
 private void buttonNew_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(this.context);
     form.ShowDialog(this);
     loadList();
 }
コード例 #6
0
 private void toolStripButtonNewInvoice_Click(object sender, EventArgs e)
 {
     invoiceForm form = new invoiceForm(context);
     form.ShowDialog(this);
 }