TopShelfCustomer/TopShelfCustomer/App.xaml.cs
/// <summary>
/// ClearPages:
///
/// Clears all Application state/dependency containers
/// </summary>


Clears all Application state/dependency containers
Clears all Application state / dependency containers
public static void ClearAppData () {
            PageContainer.Views.Clear();    
            Current.MainPage = new LoginPage();     
            UserContainer.CurrentUser = new Models.User();      
            UserContainer.Orders = new List<Models.OrderReceipt>();
            UserContainer.UserCart = new Models.Cart();
            SettingsContainer.ClearSettings();      
        }
public static void ClearAppData ( ) { PageContainer . Views . Clear ( ) ; Current . MainPage = new LoginPage ( ) ; UserContainer . CurrentUser = new Models . User ( ) ; UserContainer . Orders = new List < Models . OrderReceipt > ( ) ; UserContainer . UserCart = new Models . Cart ( ) ; SettingsContainer . ClearSettings ( ) ; }
ClearPages:
ClearPages :
//Clear Page dependency container //Change view to blank LoginPage //Clear the global User instance //Clear User Settings