AdvancedLauncher.Management.Internal.LoginManager.ShowLoginDialog C# (CSharp) Method

ShowLoginDialog() private method

private ShowLoginDialog ( string title, string message, string initUserName ) : void
title string
message string
initUserName string
return void
        private async void ShowLoginDialog(string title, string message, string initUserName) {
            MainWindow MainWindow = App.Kernel.Get<MainWindow>();
            LoginDialogData result = await MainWindow.ShowLoginAsync(title, message, new LoginDialogSettings {
                ColorScheme = MetroDialogColorScheme.Accented,
                InitialUsername = initUserName,
                NegativeButtonVisibility = System.Windows.Visibility.Visible,
                NegativeButtonText = LanguageManager.Model.CancelButton,
                UsernameWatermark = LanguageManager.Model.Settings_Account_User,
                PasswordWatermark = LanguageManager.Model.Settings_Account_Password,
                AffirmativeButtonText = LanguageManager.Model.LogInButton
            });
            if (result != null) {
                ShowLoggingInDialog(result);
                return;
            }
            if (LoginCompleted != null) {
                LoginCompleted(this, new LoginCompleteEventArgs(LoginCode.CANCELLED, string.Empty, result != null ? result.Username : string.Empty));
            }
        }