public ShowAuthWindowViewModel(MyAuthenticator auth) : this() { if (auth.AuthenticatorData.Value is GAPAuthenticatorValueDTO.SteamAuthenticator authenticator) { _Authenticator = authenticator; } }
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(); }