Kleine Änderungen

This commit is contained in:
Eugen Höglinger 2024-10-09 13:50:43 +02:00
parent c0dc89da56
commit 4ddb6d2cd5
6 changed files with 8 additions and 0 deletions

View File

@ -543,6 +543,10 @@ namespace Eugen.ESystem.Windows.Forms
return crypt.DecryptString(encryptedText.Replace("$$$$", ""), password); return crypt.DecryptString(encryptedText.Replace("$$$$", ""), password);
} }
/// <summary>
/// Sets a customer width of the user control
/// </summary>
/// <param name="width">The width. Min=316, Max=800</param>
public void SetDialogWidth(int width) public void SetDialogWidth(int width)
{ {
if (width >= this.MinimumSize.Width && width <= this.MaximumSize.Width) if (width >= this.MinimumSize.Width && width <= this.MaximumSize.Width)
@ -558,6 +562,10 @@ namespace Eugen.ESystem.Windows.Forms
} }
} }
/// <summary>
/// Sets a customer height of the user control
/// </summary>
/// <param name="height">The height. Min=227, Max=600</param>
public void SetDialogHeight(int height) public void SetDialogHeight(int height)
{ {
if (height >= this.MinimumSize.Height && height <= this.MaximumSize.Height) if (height >= this.MinimumSize.Height && height <= this.MaximumSize.Height)