示例#1
0
        private void SendLessonMainPage()
        {
            var lessonName = Data.Instance.Lesson.Name;
            var pdf = File.ReadAllBytes(Data.GetPdfFile(lessonName));
            var holderName = Data.Instance.User.CompleteName;
            var sharedLesson = new SharedLesson(lessonName, pdf, holderName);

            foreach (var member in Members)
            {
                if (member.Name != Data.Instance.User.CompleteName && member.IsChecked)
                    LinkIOImp.Instance.send("lesson", sharedLesson, member.ID);
            }
        }
示例#2
0
        private void SendLessonHomePage()
        {
            var lessonStack = Catalog.Instance.GetPage("HomePage").DataContext as LessonStack;
            var lessonName = lessonStack.currentLesson.Name;
            var pdf = File.ReadAllBytes(Data.GetPdfFile(lessonName));
            var holderName = Data.Instance.User.CompleteName;
            var sharedLesson = new SharedLesson(lessonName, pdf, holderName);

            foreach (var member in Members)
            {
                if (member.Name != Data.Instance.User.CompleteName && member.IsChecked)
                    LinkIOImp.Instance.send("lesson", sharedLesson, member.ID);
            }
        }