Example #1
0
        public NewsDetailsPage(NewsModel Item)
        {
            InitializeComponent();

            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            BindingContext = Item;
        }
Example #2
0
        public ProgramPage()
        {
            Binding = new ProgramViewModel(ConfigurationManager.RemoteResources.Local.Events, ConfigurationManager.RemoteResources.Remote.Events);

            InitializeComponent();
            BindingContext = Binding;

            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationNoInternet, "lost-connection-notification", "_VMIsDeviceOfflineNotification", true);
            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationOutdatedContent, "cached-content-notification", "_VMIsContentOutdatedNotification", false);

            Binding.InitializeService();
        }
Example #3
0
        public AnimalGuidePage(AnimalModel SelectedAnimal)
        {
            Binding = new GuideAnimalViewModel(ConfigurationManager.RemoteResources.Local.Quizes, ConfigurationManager.RemoteResources.Remote.Quizes, SelectedAnimal, true, SelectedAnimal.QuizID);

            InitializeComponent();

            BindingContext = Binding;

            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationNoInternet, "lost-connection-notification", "_VMIsDeviceOfflineNotification", true);
            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationOutdatedContent, "cached-content-notification", "_VMIsContentOutdatedNotification", false);

            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            Binding.InitializeService();

            GuiInstanceController.AnnaGuiInstance AnnaOverlay = new GuiInstanceController.AnnaGuiInstance(ApplicationLayoutTopLevel, AppResources.AppResources.AnimalGuidePageHeadline01 + " " + Binding.AnimalData.Name + ". " + AppResources.AppResources.AnimalGuidePageHeadline02);
        }
        public GuideSavannaPage(int id)
        {
            Binding = new AnimalViewModel(ConfigurationManager.RemoteResources.Local.Animals, ConfigurationManager.RemoteResources.Remote.Animals, true, id.ToString());

            InitializeComponent();
            FlowListView.Init();

            BindingContext = Binding;

            GuiInstanceController.AnnaGuiInstance AnnaOverlay = new GuiInstanceController.AnnaGuiInstance(ApplicationLayoutTopLevel);

            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationNoInternet, "lost-connection-notification", "_VMIsDeviceOfflineNotification", true);
            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationOutdatedContent, "cached-content-notification", "_VMIsContentOutdatedNotification", false);

            Binding.InitializeService();
        }
Example #5
0
        public NewsPage()
        {
            Binding = new NewsViewModel(ConfigurationManager.RemoteResources.Local.News, ConfigurationManager.RemoteResources.Remote.News);

            InitializeComponent();
            BindingContext = Binding;

            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationNoInternet, "lost-connection-notification", "_VMIsDeviceOfflineNotification", true);
            ElementsController.RenderNotification(ApplicationLayoutTopLevel, AppResources.AppResources.NotificationOutdatedContent, "cached-content-notification", "_VMIsContentOutdatedNotification", false);

            Binding.InitializeService();

            NewsList.RefreshCommand = new Command(() =>
            {
                Binding.InitializeService();
                NewsList.EndRefresh();
            });
        }
        public AnimalDetailsPage(AnimalModel SelectedAnimal)
        {
            InitializeComponent();
            ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);

            BindingContext = SelectedAnimal;

            if (SelectedAnimal.Content.Count > 0)
            {
                foreach (string Paragraph in SelectedAnimal.Content)
                {
                    InfopageContentWrapper.Children.Add(new Label
                    {
                        Text       = Paragraph,
                        StyleClass = new List <string> {
                            "ViewParagraph"
                        }
                    });
                }
            }
        }
 public GuideSavannaSelectionPage()
 {
     InitializeComponent();
     ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);
 }
Example #8
0
 public ContactPage()
 {
     InitializeComponent();
     ElementsController.RenderScannerIcon(ApplicationLayoutTopLevel, Navigation);
 }