Пример #1
0
 public Section(System.Array row)
 {
     clsID  = row.GetValue(1, 6).ToString();
     clsIns = new Instructor(row.GetValue(1, 7).ToString(), row.GetValue(1, 8).ToString());
     clsStu.Add(new Student(Int32.Parse(row.GetValue(1, 1).ToString())));
     clsStuTree = new StudentTree(Int32.Parse(row.GetValue(1, 1).ToString()));
     secCount++;
     repeat = false;
     batch  = new Batch();
 }
Пример #2
0
 public Section()
 {
     clsID      = "";
     clsName    = "";
     clsIns     = new Instructor();
     clsStu     = new List <Student>();
     clsStuTree = new StudentTree();
     secCount++;
     repeat = false;
     batch  = new Batch();
 }
Пример #3
0
        protected List <Int32> getStuClash(List <Student> list, StudentTree tree)
        {
            List <Int32> clashStu = new List <Int32>();
            int          count    = 0;

            for (int i = 0; i < list.Count; i++)
            {
                if (tree.detectStudent(list[i].getSID()) == true)
                {
                    clashStu.Add(list[i].getSID());
                    count++;
                }

                if (count > 15)
                {
                    break;
                }
            }
            return(clashStu);
        }