示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //DBCommunication dbCom = new DBCommunication();
            //Invoice i = dbCom.GetInvoice(2);
            InvoiceForm InvoiceForm = new InvoiceForm();

            InvoiceForm.ShowDialog();
        }
示例#2
0
        private void listView2_SelectedIndexChanged(object sender, EventArgs e)
        {
            ListView lv = (ListView)sender;

            foreach (ListViewItem i in lv.Items)
            {
                if (i.Selected)
                {
                    int         number  = int.Parse(i.Text);
                    Invoice     invoice = Global.DBCom.GetInvoice(number);
                    InvoiceForm IF      = new InvoiceForm(invoice);
                    IF.ShowDialog();
                }
            }
        }