Exemplo n.º 1
0
        /// <summary>
        /// As a Splash Screen the App Waits on this page for a period of time then opens the home page
        /// </summary>
        /// <param name="bundle">Used for Generating the page</param>
        protected override async void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Splash);
            await Task.Delay(1000);

            DataDB db = new DataDB(this);

            if (!db.checkDb())
            {
                db.CreateDatabase();
            }
            StartActivity(new Intent(Application.Context, typeof(HomeActivity)));
        }
Exemplo n.º 2
0
 /// <summary>
 /// This Function wipes all information from the database to
 /// reset it then updates the page with the OnResume();
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnReset_Click(object sender, EventArgs e)
 {
     db.CreateDatabase();
     OnResume();
 }