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