Пример #1
0
        private void SendFreeNotesLayer()
        {
            var FreeNotes = (FreeNotesPage) Catalog.Instance.GetPage("FreeNotesPage");
            var layerStack = FreeNotes.LayerStackDC;
            var sharedLayer = new SharedParallelLayer(
                (ParallelHolder) layerStack.holderModel,
                layerStack.holderModel.Contents[layerStack.lessonViewModel.CurrentPageIndex].Layers[
                    layerStack.CurrentLayerIndex].UID,
                Data.Instance.User.CompleteName,
                Data.Instance.User.IsTeacher
                );


            foreach (var member in Members)
            {
                if (member.Name != Data.Instance.User.CompleteName && member.IsChecked)
                    LinkIOImp.Instance.send("freenotes-layer", sharedLayer, member.ID);
            }
        }
Пример #2
0
        private void SendSlideLayer()
        {
            var MainPage = (MainPage) Catalog.Instance.GetPage("MainPage");
            var layerStack = (MainPage.LayerStack.DataContext as LayerStack);

            var sharedLayer = new SharedParallelLayer(
                (ParallelHolder) layerStack.holderModel,
                layerStack.holderModel.Contents[layerStack.lessonViewModel.CurrentPageIndex].Layers[
                    layerStack.CurrentLayerIndex].UID,
                Data.Instance.User.CompleteName,
                Data.Instance.User.IsTeacher
                );


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