Beispiel #1
0
        // Заполнение данных формы при загрузке
        public static void FillForm(FormClass Form)
        {
            string CurrentTeacher = DBOperations.GetUserName(CurrentUser);

            Form.WriteName(CurrentTeacher);
            string CurrentGroup = DBOperations.GetGroupByUser(CurrentUser);

            Form.WriteGroup(CurrentGroup);
            Form.WriteChildren(DBOperations.GetChildrenFromGroup(CurrentGroup));
            Form.WriteActivities(ReadTodaysActivities(CurrentGroup, Form.CurrentDay));
        }