Пример #1
0
        public void redirectToLogin(object sender, Android.Content.DialogClickEventArgs e)
        {
            //System.Console.WriteLine("OK Button Pressed");
            Intent LoginScreen = new Intent(this, typeof(MainActivity)); // on success loading signup page

            StartActivity(LoginScreen);
        }
Пример #2
0
        public void alertDeleteOKButton(object sender, Android.Content.DialogClickEventArgs e)
        {
            //System.Console.WriteLine("OK Button Pressed");
            myDB.deleteUser(userName);
            Intent loginScreen = new Intent(this, typeof(MainActivity)); // on success loading signup page

            StartActivity(loginScreen);
        }
Пример #3
0
        public void alertSuccessOKButton(object sender, Android.Content.DialogClickEventArgs e)
        {
            //System.Console.WriteLine("OK Button Pressed");
            Intent homeScreen = new Intent(this, typeof(Home)); // on success loading signup page

            homeScreen.PutExtra("userName", userName);
            homeScreen.PutExtra("userPassword", userPass);
            StartActivity(homeScreen);
        }
        /*public void deleteBtnClicEvent(object sender, EventArgs e)
         * {
         *  alert.SetTitle("Info");
         *  alert.SetMessage("Do you want to delete this account?");
         *  alert.SetPositiveButton("Yes", alertYesButton);
         *  alert.SetNegativeButton("No", alertNoButton);
         *  Dialog myDialog = alert.Create();
         *  myDialog.Show();
         * }*/

        public void alertSuccessOKButton(object sender, Android.Content.DialogClickEventArgs e)
        {
            Intent newScreen = new Intent(this, typeof(LogInActivity));

            string[] userData = myDB.getUserData(email, password);
            newScreen.PutExtra("userName", userData[0]);
            newScreen.PutExtra("userEmail", userData[1]);
            newScreen.PutExtra("userPassword", userData[2]);
            newScreen.PutExtra("userAge", userData[3]);
            StartActivity(newScreen);
        }
Пример #5
0
 private void Clicked(object sender, Android.Content.DialogClickEventArgs e)
 {
     if (Commands.Count > 0)
     {
         _selectedCommand = Commands[-1 - e.Which];
         if (_selectedCommand.Invoked != null)
         {
             _selectedCommand.Invoked(_selectedCommand);
         }
     }
     handle.Set();
 }
Пример #6
0
        private void OnClick(object sender, Android.Content.DialogClickEventArgs args)
        {
            switch (args.Which)
            {
            case DialogInterface.ButtonNegative:
                break;

            case DialogInterface.ButtonPositive:
                if (_action != null)
                {
                    _action();
                }
                break;

            case DialogInterface.ButtonNeutral:
                break;
            }
        }
 public void alertOKButton(object sender, Android.Content.DialogClickEventArgs e)
 {
     System.Console.WriteLine("OK Button Pressed");
 }
Пример #8
0
 public void redirectToLogin(object sender, Android.Content.DialogClickEventArgs e)
 {
     StartActivity(typeof(login));
     OverridePendingTransition(Resource.Animation.fade_in, Resource.Animation.fade_out);
 }
 public void alertSuccessButton(object sender, Android.Content.DialogClickEventArgs e)
 {
     //System.Console.WriteLine("OK Button Pressed");
     AboutusFragment f1 = new AboutusFragment(myContext, myEmailId.Text.Trim());
     setFragment(f1);
 }