Exemplo n.º 1
0
        //Search for Customer in Customer Table in Database
        private void btn_Search_Click(object sender, EventArgs e)
        {
            InvoiceCustomerSearch cusSearch = new InvoiceCustomerSearch();

            cusSearch.Show();
            this.Hide();
            InvoiceCustomerSearch.displayInfo = 1;
        }
 // EXIT -- This will terminate the current window, and open a new main window
 private void btn_Exit_Click(object sender, EventArgs e)
 {
     if (InvoiceCustomerSearch.returnToCustomerSearch == 1)
     {
         InvoiceCustomerSearch inCusSearch = new InvoiceCustomerSearch();
         inCusSearch.Refresh();
         inCusSearch.Show();
         this.Hide();
     }
     else
     {
         Main main = new Main();
         main.Show();
         this.Hide();
     }
 }