public void OnPageLoaded(object sender, RoutedEventArgs e) { PagesUtilities.DontFocusOnAnythingOnLoaded(sender, e); GetSuggestedRadio.IsChecked = true; StrainList.AddHandler(KeyDownEvent, new KeyEventHandler(AutoSuggestBox_KeyDown), true); if (UsageContext.ChosenStrain != null) //went back to this page { StrainChosen = StrainList.Text = UsageContext.ChosenStrain.Name; } }
public void OnPageLoaded(object sender, RoutedEventArgs e) { PagesUtilities.DontFocusOnAnythingOnLoaded(sender, e); try { EnumDescriptions positive = new EnumDescriptions("Would you use this strain again?", "Rate the quality of the treatment:"); PostQuestions.Items.Add(positive); questionDictionary[positive.q1] = "Don't know"; } catch (Exception x) { AppDebug.Exception(x, "PostTreatment2 => OnPageLoaded"); } }
public void OnPageLoaded(object sender, RoutedEventArgs e) { PagesUtilities.DontFocusOnAnythingOnLoaded(sender, e); try { // Load questions for user needs foreach (var medicalNeed in GlobalContext.CurrentUser.Data.MedicalNeeds) { var info = medicalNeed.GetAttribute <EnumDescriptions>(); PostQuestions.Items.Add(info); // Add to display questionDictionary[info.q1] = "Don't know"; } } catch (Exception x) { AppDebug.Exception(x, "PostTreatment => OnPageLoaded"); } }
public void OnPageLoaded(object sender, RoutedEventArgs e) { PagesUtilities.DontFocusOnAnythingOnLoaded(sender, e); }