예제 #1
0
        public async void movePage()
        {
            if (SqliteConnectionSet._user.Count == 0)
            {
                await Navigation.PushModalAsync(new NavigationPage(new TabbedLogin()));
            }
            else
            {
                if ((CrossConnectivity.Current.IsConnected == false))
                {
                    await DisplayAlert(Constants.internetAlertTittle, Constants.internetAlertMessage, Constants.internetButton);

                    await Navigation.PushModalAsync(new NavigationPage(new TabbedLogin()));
                }
                else
                {
                    var method = await(manager.CheckUserNameAndPassword(SqliteConnectionSet._user[0].UserName, SqliteConnectionSet._user[0].Password));
                    App.currentOwner = method;
                    await Navigation.PushModalAsync(new NavigationPage(new MyDogsPage()));
                }
            }
        }
예제 #2
0
        public async static Task click()
        {
            var method = await(manager.CheckUserNameAndPassword(SqliteConnectionSet._user[0].UserName, SqliteConnectionSet._user[0].Password));

            App.currentOwner = method;
        }