CredentialsWindow
StockSharp.Xaml
The window for editing ServerCredentials.
继承自: ThemedWindow
构造函数
CredentialsWindow
public CredentialsWindow()
credentialsWindow = CredentialsWindow()
Initializes a new instance of the CredentialsWindow.
属性
AccessToken
public SecureString AccessToken { get; set; }
value = credentialsWindow.AccessToken
credentialsWindow.AccessToken = value
Access token.
AutoLogon
public bool AutoLogon { get; set; }
value = credentialsWindow.AutoLogon
credentialsWindow.AutoLogon = value
Auto login.
ClientFetcher
public ICurrentClientFetcher ClientFetcher { get; set; }
value = credentialsWindow.ClientFetcher
credentialsWindow.ClientFetcher = value
Reads who signed in in the browser. Without it the window offers no sign-in there: nothing could tell it who signed in.
Email
public string Email { get; set; }
value = credentialsWindow.Email
credentialsWindow.Email = value
Email.
IsLoggedIn
public bool IsLoggedIn { get; set; }
value = credentialsWindow.IsLoggedIn
credentialsWindow.IsLoggedIn = value
Whether the user is logged in.
Password
public SecureString Password { get; set; }
value = credentialsWindow.Password
credentialsWindow.Password = value
Password.
方法
InitializeComponent
public void InitializeComponent()
credentialsWindow.InitializeComponent()
InitializeComponent
TryShow
public static Task<ValueTuple<ServerCredentials, bool>> TryShow(DependencyObject owner, ServerCredentials credentials)
result = CredentialsWindow.TryShow(owner, credentials)
Shows the window for credentials typed in by hand.
- owner
- Owner.
- credentials
- Credentials to start from, if any.
返回值: The accepted credentials and whether to log in automatically next time; no credentials when the window was closed.
TryShow
public static Task<ValueTuple<ServerCredentials, bool>> TryShow(DependencyObject owner, ICurrentClientFetcher fetcher, ServerCredentials credentials)
result = CredentialsWindow.TryShow(owner, fetcher, credentials)
Returns the client already signed in, or shows the window when the fetcher cannot tell who that is.
- owner
- Owner.
- fetcher
- Reads who is signed in.
- credentials
- Credentials to start from, if any.
返回值: The accepted credentials and whether to log in automatically next time; no credentials when the window was closed.