Exemplo n.º 1
0
        private void FormLogin_Load(object sender, EventArgs e)
        {
            cBoxCity.Items.Clear();
            cBoxRegion.Items.Clear();
            cBoxCountry.SelectedItem = "Türkiye";

            cBoxCity.ValueMember   = "cityID";
            cBoxCity.DisplayMember = "cityName";
            cBoxCity.DataSource    = HelperCity.GetCityList();
        }
Exemplo n.º 2
0
        private void FormUpdateCus_Load(object sender, EventArgs e)
        {
            cBoxCity.ValueMember   = "cityID";
            cBoxCity.DisplayMember = "cityName";
            cBoxCity.DataSource    = HelperCity.GetCityList();

            tbName.Text      = HelperCustomer.GetCustomer(cusID).cFirstName;
            tbSname.Text     = HelperCustomer.GetCustomer(cusID).cLastName;
            mtbPhone.Text    = HelperCustomer.GetCustomer(cusID).phone;
            tbCredit.Text    = HelperCustomer.GetCustomer(cusID).creditLimit.ToString();
            cBoxCountry.Text = HelperCustomer.GetCustomer(cusID).country;
            cBoxCity.Text    = HelperCustomer.GetCustomer(cusID).city;
            cBoxRegion.Text  = HelperCustomer.GetCustomer(cusID).region;
            tbAdress.Text    = HelperCustomer.GetCustomer(cusID).addressLine;
        }