Пример #1
0
        //添加字段名到comboBox控件的下拉框中:
        private void ShowComboBox()
        {
            #region 添加字段名到comboBox控件中:

                GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();

                string[] StuNum = objGetTableColumnBLL.GetStuNum();
                cbxStuNum.Items.AddRange(StuNum);

                string[] StuName = objGetTableColumnBLL.GetStuName();
                cmbStuName.Items.AddRange(StuName);

                string[] GetCourseId = objGetTableColumnBLL.GetCourseNum();
                cbxCourseNum.Items.AddRange(GetCourseId);

                string[] CourseName = objGetTableColumnBLL.GetCourseName();
                cbxCourseName.Items.AddRange(CourseName);

                string[] Score = objGetTableColumnBLL.GetScore();
                cbxScore.Items.AddRange(Score);
            #endregion
        }
Пример #2
0
 private void GetStuNum()
 {
     GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();
         string[] StuNum = objGetTableColumnBLL.GetStuNum();
         cmbStuSearchValue.Items.AddRange(StuNum);
 }