Beispiel #1
0
        public static void GoToPage(object tag, PhoneApplicationPage page)
        {
            Type entryType = getEntryType(tag);

            if (entryType == typeof(StrengthTrainingEntryDTO))
            {
                page.Navigate("/Pages/StrengthWorkoutPage.xaml");
            }
            else if (entryType == typeof(SuplementsEntryDTO))
            {
                page.Navigate("/Pages/SupplementsPage.xaml");
            }
            else if (entryType == typeof(SizeEntryDTO))
            {
                page.Navigate("/Pages/MeasurementsPage.xaml");
            }
            else if (entryType == typeof(GPSTrackerEntryDTO))
            {
                page.Navigate("/Pages/GPSTrackerPage.xaml");
            }
            else if (entryType == typeof(BlogEntryDTO))
            {
                page.Navigate("/Pages/BlogPage.xaml");
            }
        }