public void CheckLogin(string name, string password) { List <int> loginRequest = userDataBase.Login(name, password); if (loginRequest[0] == 0) { WrongLoginData?.Invoke(); } else { userProfiler = new UserProfiler(loginRequest[0], loginRequest[1]); UserWasOpen(); } }
private void OnSignInClick(object sender, EventArgs e) { if ((userName.Text.Trim().Equals("") || userName.Text.Length < 0) || (password.Text.Trim().Equals("") || password.Text.Length < 0)) { new MessageHelper().alertFunction("Error", "Please Fill All Fields", this); } if (userDB.Login(userName.Text, password.Text)) { var activity2 = new Intent(this, typeof(LocationActivity)); //activity2.PutExtra("mail", myEmail); //activity2.PutExtra("name", myName); //activity2.PutExtra("age", myAge); App.username = userName.Text; StartActivity(activity2); } }