Exemplo n.º 1
0
        public App()
        {
            Xamarin.FormsBook.Toolkit.Toolkit.Init;

            if (Properties.ContainsKey("appData"))
            {
                AppData = AppData.Deserialize((string)Properties["appData"]);
            }
            else
            {
                AppData = new AppData();
            }
            Page homePage = new DataTransfer5HomePage();

            // Go to the home page.
            MainPage = new NavigationPage(homePage);
            if (Properties.ContainsKey("isInfoPageActive") &&
                (bool)Properties["isInfoPageActive"])
            {
                homePage.Navigation.PushAsync(new DataTransfer5InfoPage(), false);
            }
        }