CredentialsWindow
The window for editing ServerCredentials.
Erbt von: ThemedWindow
Implementiert: IComponentConnector
Konstruktoren
public CredentialsWindow()
credentialsWindow = CredentialsWindow()
Initializes a new instance of the CredentialsWindow.
Eigenschaften
public SecureString AccessToken { get; set; }
value = credentialsWindow.AccessToken
credentialsWindow.AccessToken = value
Access token.
public bool AutoLogon { get; set; }
value = credentialsWindow.AutoLogon
credentialsWindow.AutoLogon = value
Auto login.
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.
public string Email { get; set; }
value = credentialsWindow.Email
credentialsWindow.Email = value
Email.
public bool IsLoggedIn { get; set; }
value = credentialsWindow.IsLoggedIn
credentialsWindow.IsLoggedIn = value
Whether the user is logged in.
public SecureString Password { get; set; }
value = credentialsWindow.Password
credentialsWindow.Password = value
Password.
Methoden
public void InitializeComponent()
credentialsWindow.InitializeComponent()
InitializeComponent
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.
Rückgabe: The accepted credentials and whether to log in automatically next time; no credentials when the window was closed.
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.
Rückgabe: The accepted credentials and whether to log in automatically next time; no credentials when the window was closed.