Example #1
0
 public static void LogOff()
 {
     SessionCustomerService.DeleteAccount();
     Current.MainPage = new NavigationPage(new LoginView())
     {
         BarBackgroundColor = GetBackgroundColor()
     };
     IsLogin = false;
 }
Example #2
0
        public static async void ValidateLoginAsync()
        {
            try
            {
                bool result = await SessionCustomerService.ValidateLoginAsync();

                if (result)
                {
                    IsLogin = true;
                    NavigateToHome();
                }
                else
                {
                    ShowStartView();
                }
            }
            catch { ShowStartView(); }
        }