public static void ClearAuth() { if (authViewModel != null) authViewModel.Cleanup(); authViewModel = null; }
public static void CreateAuth() { if (authViewModel == null) { AuthResult auth; IsolatedStorageSettings.ApplicationSettings.TryGetValue<AuthResult>("auth", out auth); authViewModel = new AuthenticationViewModel(auth); } }