Esempio n. 1
0
 public StartTestCourseForm(ClassroomView classroomView)
 {
     InitializeComponent();
     this.classroomView = classroomView;
     this.Text          = classroomView.ClassroomID + "";
     fillModel(classroomView.ClassroomID);
 }
Esempio n. 2
0
        private void SetDefaultNameforTestCourse(ClassroomView classroom)
        {
            string sClassroomName = classroom.ClassroomName;

            if (classroom != null)
            {
                string sTime = " at " + DateTime.Now.ToString("yyyy-MM-dd HH mm ss");
                textBox1.Text = "Test Course in " + sClassroomName + sTime;
            }
        }
Esempio n. 3
0
        public static ComboItem[] GetComboItems(ClassroomView classroomView)
        {
            List <ComboItem> list = new List <ComboItem>();

            list.Add(new ComboItem("19", "CameraVideo"));
            for (int i = 0; i < int.Parse(classroomView.WBNumber); i++)
            {
                int       wb   = 55;
                ComboItem item = new ComboItem((wb + i) + "", "whiteboard" + (1 + i));
                list.Add(item);
            }
            for (int i = 0; i < int.Parse(classroomView.KaptivoNumber); i++)
            {
                int       kp   = 52;
                ComboItem item = new ComboItem((kp + i) + "", "Kaptivo" + (1 + i));
                list.Add(item);
            }
            list.Add(new ComboItem("51", "TeacherScreen"));
            return(list.ToArray());
        }