private void cmbState_SelectionChanged(object sender, SelectionChangedEventArgs e) { //LoadBrandDropDown(); int pstateid; if (cmbState.SelectedValue != null) { pstateid = int.Parse(cmbState.SelectedValue.ToString()); } else { pstateid = loginstateid; } cr.LoadBrand(pstateid); cmbBrand.SelectedIndex = 0; }
private void cmbState_SelectionChanged(object sender, SelectionChangedEventArgs e) { int pstateid; if (cmbState.SelectedValue != null) { pstateid = int.Parse(cmbState.SelectedValue.ToString()); } else { pstateid = loginstateid; } cr.LoadRegion(pstateid); cr.LoadBrand(pstateid); cr.LoadHomesPlans(pstateid, null, "", 1); // return all homes in the state cmbBrand.Text = string.Empty; cmbRegion.Text = string.Empty; }
private void cmbState_SelectionChanged(object sender, SelectionChangedEventArgs e) { //LoadBrandDropDown(); int pstateid; if (cmbState.SelectedValue != null) { pstateid = int.Parse(cmbState.SelectedValue.ToString()); } else { pstateid = loginstateid; } cr.LoadRegion(pstateid); cr.LoadBrand(pstateid); cr.LoadHomesPlans(pstateid, null, "", 1); // return all homes in the state cmbBrand.Text = string.Empty; cmbRegion.Text = string.Empty; cmbHome.Text = string.Empty; cmbHome.IsEnabled = false; radioButtonBrand.IsChecked = true; }
private void cmbState_SelectionChanged(object sender, SelectionChangedEventArgs e) { cr.LoadBrand(int.Parse(cmbState.SelectedValue.ToString())); cmbBrand.SelectedIndex = 1; }