Simplify UI labels and dialogs: drop clutter, show Sonic as connected/not connected.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -86,9 +86,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
Label details = new()
|
||||
{
|
||||
Text =
|
||||
$"Umgebung: {_system.EnvironmentCode}"
|
||||
+ Environment.NewLine
|
||||
+ $"Domain: {_system.DomainName}"
|
||||
$"Domain: {_system.DomainName}"
|
||||
+ Environment.NewLine
|
||||
+ $"Adresse: {_system.ConnectionUrl}"
|
||||
+ Environment.NewLine
|
||||
@@ -99,7 +97,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
new Point(30, 62),
|
||||
|
||||
Size =
|
||||
new Size(495, 90),
|
||||
new Size(495, 80),
|
||||
|
||||
ForeColor =
|
||||
Color.FromArgb(169, 184, 200)
|
||||
@@ -300,8 +298,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (string.IsNullOrWhiteSpace(profileName))
|
||||
{
|
||||
ShowWarning(
|
||||
"Bitte einen Profilnamen eingeben.");
|
||||
ShowWarning("Profilname fehlt.");
|
||||
|
||||
_txtProfileName.Focus();
|
||||
return;
|
||||
@@ -309,8 +306,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (profileName.Length > 150)
|
||||
{
|
||||
ShowWarning(
|
||||
"Der Profilname darf maximal 150 Zeichen enthalten.");
|
||||
ShowWarning("Profilname zu lang.");
|
||||
|
||||
_txtProfileName.Focus();
|
||||
return;
|
||||
@@ -318,8 +314,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (string.IsNullOrWhiteSpace(userName))
|
||||
{
|
||||
ShowWarning(
|
||||
"Bitte einen Sonic-Benutzernamen eingeben.");
|
||||
ShowWarning("Benutzername fehlt.");
|
||||
|
||||
_txtUserName.Focus();
|
||||
return;
|
||||
@@ -327,8 +322,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (userName.Length > 256)
|
||||
{
|
||||
ShowWarning(
|
||||
"Der Benutzername darf maximal 256 Zeichen enthalten.");
|
||||
ShowWarning("Benutzername zu lang.");
|
||||
|
||||
_txtUserName.Focus();
|
||||
return;
|
||||
@@ -336,8 +330,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (string.IsNullOrEmpty(password))
|
||||
{
|
||||
ShowWarning(
|
||||
"Bitte ein Kennwort eingeben.");
|
||||
ShowWarning("Kennwort fehlt.");
|
||||
|
||||
_txtPassword.Focus();
|
||||
return;
|
||||
@@ -345,8 +338,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
|
||||
if (password.Length > 512)
|
||||
{
|
||||
ShowWarning(
|
||||
"Das Kennwort darf maximal 512 Zeichen enthalten.");
|
||||
ShowWarning("Kennwort zu lang.");
|
||||
|
||||
_txtPassword.Focus();
|
||||
return;
|
||||
@@ -357,8 +349,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
passwordRepeat,
|
||||
StringComparison.Ordinal))
|
||||
{
|
||||
ShowWarning(
|
||||
"Die eingegebenen Kennwörter stimmen nicht überein.");
|
||||
ShowWarning("Kennwörter stimmen nicht überein.");
|
||||
|
||||
_txtPasswordRepeat.Clear();
|
||||
_txtPasswordRepeat.Focus();
|
||||
@@ -400,10 +391,7 @@ public sealed class AddCredentialProfileForm : Form
|
||||
{
|
||||
MessageBox.Show(
|
||||
this,
|
||||
"Das Benutzerprofil konnte nicht angelegt werden."
|
||||
+ Environment.NewLine
|
||||
+ Environment.NewLine
|
||||
+ exception.Message,
|
||||
"Profil konnte nicht angelegt werden.",
|
||||
"Benutzerprofil",
|
||||
MessageBoxButtons.OK,
|
||||
MessageBoxIcon.Error);
|
||||
|
||||
Reference in New Issue
Block a user