Beispiel #1
0
        private void checkExits()
        {
            int sTotal = boCc_Mh.getCC_MONHOC_ByCcID(mIdCcMh).Rows.Count;

            for (int ii = 0; ii < sTotal; ii++)
            {
                for (int i = 0; i < boMh.getMonHoc_All().Rows.Count; i++)
                {
                    if (boCc_Mh.getCC_MONHOC_ByCcID(mIdCcMh).Rows[ii]["CCM_MONID"].ToString() == boMh.getMonHoc_All().Rows[i]["MON_ID"].ToString())
                    {
                        //listSubject.SetItemChecked(int.Parse(boCc_Mh.getCC_MONHOC_ByCcID(mIdCcMh).Rows[ii]["CCM_MONID"].ToString()), true);
                        listSubject.SetItemChecked(i, true);
                    }
                    else
                    {
                        listSubject.Refresh();
                    }
                }
            }
        }
Beispiel #2
0
 void loadSubject()
 {
     gridSubjects.DataSource = mHoc.getMonHoc_All();
 }