Beispiel #1
0
        public static int checkLesson(int courseid, int lessonid)
        {
            if (m_courseid == 0 && courseid != 0)
            {
                m_courseid = courseid;

                foreach (User u in Global.g_TeacherArray)
                {
                    if (m_courseid == u.courseid)
                    {
                        m_teacherid = u.id;
                        break;
                    }
                }
            }

            if (m_lessonid == 0 && lessonid != 0)
            {
                m_lessonid = lessonid;
                Common.getLessonAsync();
                Log.Info("reload Lesson: " + m_lessonid + ", pad.lessonid=" + lessonid);
            }


            return(1);
        }