Exemplo n.º 1
0
        private void ExitClick(object sender, EventArgs e)
        {
            splashActivity.AppPreferences(Activity);
            splashActivity.SaveAccessKey("Bool", true);

            Intent intent = new Intent(Activity, typeof(EntranceActivity));

            StartActivity(intent);
        }
Exemplo n.º 2
0
        private void AuthSignInClick(object sender, EventArgs e)
        {
            bool   check;
            string email = AuthLogin.Text;
            string pass  = AuthPass.Text;

            check = dataBaseClass.Entrance(email, pass);
            if (check == true)
            {
                splashActivity.AppPreferences(Activity);
                splashActivity.SaveAccessKey("Bool", false);

                Intent intent = new Intent(Activity, typeof(MainActivity));
                StartActivity(intent);
            }
            else
            {
                Toast.MakeText(Activity, "Error", ToastLength.Short).Show();
            }
        }