Exemplo n.º 1
0
        private void Reauth()
        {
            var authvm = new AuthenticateViewModel(this.AccountInfo);

            Messenger.Raise(new TransitionMessage(authvm, TransitionMode.Modal, "Reauth"));
            if (authvm.Success)
            {
                this.AccountInfo = authvm.GetAccountInfo(this.AccountInfo);
            }
        }
Exemplo n.º 2
0
 private void AddAccount()
 {
     var auth = new AuthenticateViewModel();
     var msg = new TransitionMessage(auth, "ShowAuth");
     this.Messenger.Raise(msg);
     var ainfo = auth.GetAccountInfo();
     if (auth.Success && ainfo != null)
     {
         if (AccountStorage.Contains(ainfo.ScreenName))
         {
             this.Messenger.Raise(new InformationMessage("アカウント @" + ainfo.ScreenName + " は既に存在します。", "アカウント追加エラー", System.Windows.MessageBoxImage.Error, "Information"));
         }
         else
         {
             ShowAccountConfig(ainfo);
             AccountStorage.RegisterAccount(ainfo);
             UserInformationManager.ReceiveInidividualInfo(ainfo);
         }
     }
 }
 private void Reauth()
 {
     var authvm = new AuthenticateViewModel(this.AccountInfo);
     Messenger.Raise(new TransitionMessage(authvm, TransitionMode.Modal, "Reauth"));
     if (authvm.Success)
     {
         this.AccountInfo = authvm.GetAccountInfo(this.AccountInfo);
     }
 }