コード例 #1
0
        private void CashSaleTotal_Load(object sender, EventArgs e)
        {
            //Hide the text box of the first radio button
            txtCash.Hide();
            txtTotal.Show();
            txtTotal.Select();  //To enter the total of the customer


            csc     = new CashSaleClass();
            cash    = new CashSale();
            changeC = new CashChange();
        }
コード例 #2
0
 private void lstBxMenu_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lstBxMenu.SelectedItem.Equals("Cash Sale"))
     {
         cash = new CashSale();
         cash.Show();
     }
     else if (lstBxMenu.SelectedItem.Equals("Customer Enquiry"))
     {
         cust = new CustomerEnquiry();
         cust.Show();
     }
     else if (lstBxMenu.SelectedItem.Equals("Appointments"))
     {
         app = new frmAppointments();
         app.Show();
     }
     else
     {
         re = new Reports();
         re.Show();
     }
 }