Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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");
            }
        }
Esempio n. 3
0
        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");
            }
        }
Esempio n. 4
0
 public void OnPageLoaded(object sender, RoutedEventArgs e)
 {
     PagesUtilities.DontFocusOnAnythingOnLoaded(sender, e);
 }