コード例 #1
0
ファイル: YEvents.cs プロジェクト: aragoubi/Project
        private void RegisterTeacherEvents()
        {
            LIO.on("slide-index", (e) => { OnAskingSlideIndex(e as Event); });

            LIO.on("graphical-answer", (e) => { OnGraphicalAnswer(e as Event); });
            LIO.on("quiz-answer", (e) => { OnQuizAnswer(e as Event); });
        }
コード例 #2
0
ファイル: YEvents.cs プロジェクト: aragoubi/Project
        private void RegisterStudentEvents()
        {
            LIO.on("new-page-index", (e) => { OnPageIndexReceived(e as Event); });

            LIO.on("slide-pointer", (e) => { OnSlidePointerStrokeReceived(e as Event); });
            LIO.on("question-pointer", (e) => { OnQuestionPointerStrokeReceived(e as Event); });

            // Only students can receive pointer (fix double pointer-writing when the teacher draw and receive the same stroke)
            LIO.on("quiz-ask", (e) => { OnQuizReceived(e as Event); });
            LIO.on("graphical-ask", (e) => { OnGraphicalReceived(e as Event); });
        }
コード例 #3
0
ファイル: YEvents.cs プロジェクト: aragoubi/Project
        public void Register()
        {
            // When a lesson is shared by someone
            LIO.on("lesson", (e) => { OnLessonReceived(e as Event); });

            LIO.on("slide-layer", (e) => { OnSlideLayerReceived(e as Event); });
            LIO.on("freenotes-layer", (e) => { OnFreeNotesLayerReceived(e as Event); });
            LIO.on("question-layer", (e) => { OnQuestionLayerReceived(e as Event); });

            RegisterTeacherEvents();
            RegisterStudentEvents();
        }