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); }
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(); }
public static void SetPreQuestionnaire(PreQuestionnaire p) { PreQuestionnaire CurrentPreQuestionnaire = p; BlobCache.LocalMachine.InsertObject <PreQuestionnaire>("PreQuestionnaire", CurrentPreQuestionnaire).Wait(); }