private void cboChapter_SelectedIndexChanged(object sender, EventArgs e) { if (CommonHandler.GetComboBoxSelectedValue(cboChapter) != null ) { BindComBox.BindLink(CommonHandler.GetComboBoxSelectedValue(cboProject).ToString(), CommonHandler.GetComboBoxSelectedValue(cboChapter).ToString(), cboLink); } }
private void cboChapterForSubject_SelectedIndexChanged(object sender, EventArgs e) { if (CommonHandler.GetComboBoxSelectedValue(cboChapterForSubject) != null && !string.IsNullOrEmpty(CommonHandler.GetComboBoxSelectedValue(cboChapterForSubject).ToString())) { BindComBox.BindLink(CommonHandler.GetComboBoxSelectedValue(cboProjectForSubject).ToString(), CommonHandler.GetComboBoxSelectedValue(cboChapterForSubject).ToString(), cboLink); } else { BindComBox.BindLink(CommonHandler.GetComboBoxSelectedValue(cboProjectForSubject).ToString(), CommonHandler.GetComboBoxSelectedValue(cboChapterForSubject).ToString(), cboLink); CommonHandler.SetComboBoxSelectedValue(cboLink, ""); } }