Beispiel #1
0
        private void ID_combo_SelectedIndexChanged(object sender, EventArgs e)
        {
            customer.cusName = ID_combo.Text;
            int cusId = cusI.GetCustomerIDs(customer);

            fname_txt.Text = cusId.ToString();
        }
        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            customer.cusName = ID_combo.Text;
            int cusId = cusI.GetCustomerIDs(customer);

            ID_display.Text = cusId.ToString();

            if (!String.Equals(ID_display.Text, ""))
            {
                getPackageTotal();
                getSellTotal();

                try
                {
                    double pack = Double.Parse(lblSellTotal.Text);
                    double sell = Double.Parse(lblPackTotal.Text);

                    wholeTotal.Text = (pack + sell).ToString() + "0";
                }
                catch (Exception)
                {
                }
            }
            else
            {
                wholeTotal.Text = "0.00";
            }
        }