示例#1
0
        public static void ClearAuth()
        {
            if (authViewModel != null)
                authViewModel.Cleanup();

            authViewModel = null;
        }
示例#2
0
 public static void CreateAuth()
 {
     if (authViewModel == null)
     {
         AuthResult auth;
         IsolatedStorageSettings.ApplicationSettings.TryGetValue<AuthResult>("auth", out auth);
         authViewModel = new AuthenticationViewModel(auth);
     }
 }