From b434ddf480e2f144b78c4bded4260265797f6fdd Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Thu, 31 Jul 2025 14:51:30 +0200 Subject: [PATCH] preparation for dynamic options --- .../MainForm.Designer.cs | 38 +++++++++---------- ModpackUpdater.Apps.Client/MainForm.cs | 1 + 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ModpackUpdater.Apps.Client/MainForm.Designer.cs b/ModpackUpdater.Apps.Client/MainForm.Designer.cs index f684775..14cd913 100644 --- a/ModpackUpdater.Apps.Client/MainForm.Designer.cs +++ b/ModpackUpdater.Apps.Client/MainForm.Designer.cs @@ -67,18 +67,18 @@ namespace ModpackUpdater.Apps.Client // RadLabel_MinecraftProfile // RadLabel_MinecraftProfile.Anchor = AnchorStyles.Left; - RadLabel_MinecraftProfile.Location = new Point(3, 4); + RadLabel_MinecraftProfile.Location = new Point(3, 6); RadLabel_MinecraftProfile.Name = "RadLabel_MinecraftProfile"; - RadLabel_MinecraftProfile.Size = new Size(113, 22); + RadLabel_MinecraftProfile.Size = new Size(89, 18); RadLabel_MinecraftProfile.TabIndex = 0; RadLabel_MinecraftProfile.Text = "Minecraft profile"; // // RadLabel_ModpackUrl // RadLabel_ModpackUrl.Anchor = AnchorStyles.Left; - RadLabel_ModpackUrl.Location = new Point(3, 34); + RadLabel_ModpackUrl.Location = new Point(3, 36); RadLabel_ModpackUrl.Name = "RadLabel_ModpackUrl"; - RadLabel_ModpackUrl.Size = new Size(96, 22); + RadLabel_ModpackUrl.Size = new Size(76, 18); RadLabel_ModpackUrl.TabIndex = 1; RadLabel_ModpackUrl.Text = "Modpack URL"; // @@ -86,10 +86,10 @@ namespace ModpackUpdater.Apps.Client // RadTextBox_MinecraftProfileFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; tableLayoutPanel1.SetColumnSpan(RadTextBox_MinecraftProfileFolder, 3); - RadTextBox_MinecraftProfileFolder.Location = new Point(122, 3); + RadTextBox_MinecraftProfileFolder.Location = new Point(98, 3); RadTextBox_MinecraftProfileFolder.Name = "RadTextBox_MinecraftProfileFolder"; RadTextBox_MinecraftProfileFolder.NullText = "C:\\Users\\...\\AppData\\..."; - RadTextBox_MinecraftProfileFolder.Size = new Size(197, 24); + RadTextBox_MinecraftProfileFolder.Size = new Size(221, 24); RadTextBox_MinecraftProfileFolder.TabIndex = 1; RadTextBox_MinecraftProfileFolder.TextChanged += RadTextBox_MinecraftFolder_TextInserted; // @@ -97,10 +97,10 @@ namespace ModpackUpdater.Apps.Client // RadTextBox_ModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; tableLayoutPanel1.SetColumnSpan(RadTextBox_ModpackConfig, 5); - RadTextBox_ModpackConfig.Location = new Point(122, 33); + RadTextBox_ModpackConfig.Location = new Point(98, 33); RadTextBox_ModpackConfig.Name = "RadTextBox_ModpackConfig"; RadTextBox_ModpackConfig.NullText = "https://..."; - RadTextBox_ModpackConfig.Size = new Size(297, 24); + RadTextBox_ModpackConfig.Size = new Size(321, 24); RadTextBox_ModpackConfig.TabIndex = 3; RadTextBox_ModpackConfig.TextChanged += RadTextBox_ModpackUrl_TextInserted; // @@ -135,9 +135,9 @@ namespace ModpackUpdater.Apps.Client RadButton_CheckForUpdates.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; tableLayoutPanel1.SetColumnSpan(RadButton_CheckForUpdates, 3); RadButton_CheckForUpdates.ImageAlignment = ContentAlignment.MiddleRight; - RadButton_CheckForUpdates.Location = new Point(122, 121); + RadButton_CheckForUpdates.Location = new Point(98, 121); RadButton_CheckForUpdates.Name = "RadButton_CheckForUpdates"; - RadButton_CheckForUpdates.Size = new Size(197, 24); + RadButton_CheckForUpdates.Size = new Size(221, 24); RadButton_CheckForUpdates.TabIndex = 100; RadButton_CheckForUpdates.Text = "Check for Updates"; RadButton_CheckForUpdates.TextAlignment = ContentAlignment.MiddleLeft; @@ -189,16 +189,16 @@ namespace ModpackUpdater.Apps.Client tableLayoutPanel1.RowStyles.Add(new RowStyle()); tableLayoutPanel1.RowStyles.Add(new RowStyle()); tableLayoutPanel1.RowStyles.Add(new RowStyle()); - tableLayoutPanel1.Size = new Size(422, 173); + tableLayoutPanel1.Size = new Size(422, 151); tableLayoutPanel1.TabIndex = 7; // // RadLabel_Status // - RadLabel_Status.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + RadLabel_Status.Anchor = AnchorStyles.Left; tableLayoutPanel1.SetColumnSpan(RadLabel_Status, 5); - RadLabel_Status.Location = new Point(122, 93); + RadLabel_Status.Location = new Point(98, 95); RadLabel_Status.Name = "RadLabel_Status"; - RadLabel_Status.Size = new Size(13, 22); + RadLabel_Status.Size = new Size(11, 18); RadLabel_Status.TabIndex = 3; RadLabel_Status.Text = "-"; RadLabel_Status.TextImageRelation = TextImageRelation.ImageBeforeText; @@ -215,9 +215,9 @@ namespace ModpackUpdater.Apps.Client // radLabel_InstallationKey // radLabel_InstallationKey.Anchor = AnchorStyles.Left; - radLabel_InstallationKey.Location = new Point(3, 64); + radLabel_InstallationKey.Location = new Point(3, 66); radLabel_InstallationKey.Name = "radLabel_InstallationKey"; - radLabel_InstallationKey.Size = new Size(102, 22); + radLabel_InstallationKey.Size = new Size(81, 18); radLabel_InstallationKey.TabIndex = 12; radLabel_InstallationKey.Text = "Installation key"; radLabel_InstallationKey.Visible = false; @@ -226,10 +226,10 @@ namespace ModpackUpdater.Apps.Client // radTextBox_InstallKey.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; tableLayoutPanel1.SetColumnSpan(radTextBox_InstallKey, 5); - radTextBox_InstallKey.Location = new Point(122, 63); + radTextBox_InstallKey.Location = new Point(98, 63); radTextBox_InstallKey.Name = "radTextBox_InstallKey"; radTextBox_InstallKey.NullText = "AAAAA-BBBBB-CCCCC-DDDDD-EEEEE"; - radTextBox_InstallKey.Size = new Size(297, 24); + radTextBox_InstallKey.Size = new Size(321, 24); radTextBox_InstallKey.TabIndex = 4; radTextBox_InstallKey.Visible = false; radTextBox_InstallKey.TextChanged += RadTextBox_InstallationKey_TextInserted; @@ -241,7 +241,7 @@ namespace ModpackUpdater.Apps.Client AutoScaleMode = AutoScaleMode.Font; AutoSize = true; AutoSizeMode = AutoSizeMode.GrowAndShrink; - ClientSize = new Size(422, 173); + ClientSize = new Size(422, 151); Controls.Add(tableLayoutPanel1); Icon = (Icon)resources.GetObject("$this.Icon"); MaximizeBox = false; diff --git a/ModpackUpdater.Apps.Client/MainForm.cs b/ModpackUpdater.Apps.Client/MainForm.cs index c25043c..dfcb295 100644 --- a/ModpackUpdater.Apps.Client/MainForm.cs +++ b/ModpackUpdater.Apps.Client/MainForm.cs @@ -19,6 +19,7 @@ public partial class MainForm private UpdateCheckResult lastUpdateCheckResult; private bool currentUpdating; private bool loadingData; + private int curOptionsRow = 3; public MainForm() : this(new()) {