Exemplo n.º 1
0
 public ShowAuthWindowViewModel(MyAuthenticator auth) : this()
 {
     if (auth.AuthenticatorData.Value is GAPAuthenticatorValueDTO.SteamAuthenticator authenticator)
     {
         _Authenticator = authenticator;
     }
 }
Exemplo n.º 2
0
 public ShowAuthWindowViewModel(MyAuthenticator auth)
 {
     if (auth.AuthenticatorData.Value is GAPAuthenticatorValueDTO.SteamAuthenticator authenticator)
     {
         _Authenticator = authenticator;
     }
     Title = ThisAssembly.AssemblyTrademark + " | " + AppResources.LocalAuth_AuthData;
 }
        public AuthTradeWindowViewModel(MyAuthenticator auth) : this()
        {
            MyAuthenticator = auth;
            if (MyAuthenticator.AuthenticatorData.Value is GAPAuthenticatorValueDTO.SteamAuthenticator authenticator)
            {
                _Authenticator = authenticator;
                UserName       = _Authenticator.AccountName;
            }
            else
            {
                //非Steam令牌无法弹出确认交易框
                throw new NullReferenceException();
            }

            Refresh_Click();
        }