예제 #1
0
        private void Button_Forget_Click(object sender, RoutedEventArgs e)
        {
            PassportDelete();

            UserSelect.accountList.Remove(activeAccount);
            AccountsHelper.SaveAccountList(UserSelect.accountList);
        }
예제 #2
0
파일: Content.xaml.cs 프로젝트: ice0/test
        private void Button_Forget_Click(object sender, RoutedEventArgs e)
        {
            if (activeAccount.UsesPassport == true)
            {
                PassportDelete();
            }

            UserSelect.accountList.Remove(activeAccount);
            AccountsHelper.SaveAccountList(UserSelect.accountList);

            rootPage.NotifyUser("User " + activeAccount.Email + " deleted.", NotifyType.StatusMessage);
            button_Forget.IsEnabled = false;
            button_Forget.Content   = "User Forgotten.";
        }
예제 #3
0
파일: SignIn.xaml.cs 프로젝트: ice0/test
 /// <summary>
 /// Uses the AccountsHelper class to save the account list before we move on from
 /// the sign in process
 /// </summary>
 private void CleanUpUserList()
 {
     AccountsHelper.SaveAccountList(UserSelect.accountList);
 }