Пример #1
0
        public static PreQuestionnaire GetPreQuestionnaire()
        {
            PreQuestionnaire p = new PreQuestionnaire();

            try
            {
                p = BlobCache.LocalMachine.GetObject <PreQuestionnaire>("PreQuestionnaire").Wait();
            }
            catch (KeyNotFoundException)
            {
                Console.WriteLine("Nothing to get.");
            }
            return(p);
        }
Пример #2
0
        public SessionActivePage()
        {
            InitializeComponent();

            PreQuestionnaire p = new PreQuestionnaire();

            p = QuestionnaireStore.GetPreQuestionnaire();

            Console.WriteLine(p.Comments);

            BindingContext = _vm = new SessionViewModel();

            CarouselViews.ItemsSource = _vm._mockService.Exercises;

            SessionTitle.Text = "Session N";

            sessionCount       = _vm._mockService.Exercises.Where(Name => Name != null).Count();
            exerciseCount.Text = sessionCount.ToString();
        }
Пример #3
0
        public static void SetPreQuestionnaire(PreQuestionnaire p)
        {
            PreQuestionnaire CurrentPreQuestionnaire = p;

            BlobCache.LocalMachine.InsertObject <PreQuestionnaire>("PreQuestionnaire", CurrentPreQuestionnaire).Wait();
        }