Esempio n. 1
0
        private void CustomerList_DoubleClick(object sender, EventArgs e)
        {
            int         customerID  = CustomerDatabase.GetStoreID(custList.SelectedItems[0].Text, custList.SelectedItems[0].SubItems[3].Text);
            InvoiceForm invoiceForm = new InvoiceForm(customerID);

            invoiceForm.Size = new System.Drawing.Size(900, 700);
            invoiceForm.Show();
            this.Close();
        }
Esempio n. 2
0
 private void SelectCustomerButton_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem l in custList.SelectedItems)
     {
         int         customerID  = CustomerDatabase.GetStoreID(l.SubItems[0].Text, l.SubItems[3].Text);
         InvoiceForm invoiceForm = new InvoiceForm(customerID);
         invoiceForm.Size = new System.Drawing.Size(900, 700);
         invoiceForm.Show();
         this.Close();
     }
 }