Пример #1
0
        public async void ValidateUser()
        {
            Login login = new Login();

            login.UserName   = UserName;
            login.Password   = Password;
            AuthClient.Login = new Models.Login

            {
                Login1   = UserName.Text,
                Password = Password.Text
            };
            AuthClient.SetProperties();
            var s = await AuthClient.AuthorizationClient();

            if (s == true)
            {
                Application.Current.MainPage = new MainPage();
            }
            else
            {
                await DisplayAlert("Wrong password", "Incorrrect password", "cancel");
            }
        }