286 lines
16 KiB
C#
286 lines
16 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ModpackUpdater.Apps.Client
|
|
{
|
|
[Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]
|
|
|
|
public partial class MainForm : Telerik.WinControls.UI.RadForm
|
|
{
|
|
|
|
// Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
|
[DebuggerNonUserCode()]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
try
|
|
{
|
|
if (disposing && components is not null)
|
|
components.Dispose();
|
|
}
|
|
finally
|
|
{
|
|
base.Dispose(disposing);
|
|
}
|
|
}
|
|
|
|
// Wird vom Windows Form-Designer benötigt.
|
|
private System.ComponentModel.IContainer components = new System.ComponentModel.Container();
|
|
|
|
// Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
|
// Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
|
// Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
|
[DebuggerStepThrough()]
|
|
private void InitializeComponent()
|
|
{
|
|
RadLabel_MinecraftProfile = new Telerik.WinControls.UI.RadLabel();
|
|
RadLabel_ModpackUrl = new Telerik.WinControls.UI.RadLabel();
|
|
RadTextBox_MinecraftProfileFolder = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
RadTextBox_ModpackConfig = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
RadButton_Install = new Telerik.WinControls.UI.RadSplitButton();
|
|
radMenuItem_Install = new Telerik.WinControls.UI.RadMenuItem();
|
|
radMenuItem_Repair = new Telerik.WinControls.UI.RadMenuItem();
|
|
RadButton_CheckForUpdates = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_SearchMinecraftProfileFolder = new Telerik.WinControls.UI.RadButton();
|
|
tableLayoutPanel1 = new TableLayoutPanel();
|
|
RadLabel_Status = new Telerik.WinControls.UI.RadLabel();
|
|
RadLabel_StatusDesc = new Telerik.WinControls.UI.RadLabel();
|
|
radLabel_InstallationKey = new Telerik.WinControls.UI.RadLabel();
|
|
radTextBox_InstallKey = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_MinecraftProfile).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_ModpackUrl).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBox_MinecraftProfileFolder).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBox_ModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_Install).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_CheckForUpdates).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).BeginInit();
|
|
tableLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_Status).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_StatusDesc).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)radLabel_InstallationKey).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)radTextBox_InstallKey).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)this).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// RadLabel_MinecraftProfile
|
|
//
|
|
RadLabel_MinecraftProfile.Anchor = AnchorStyles.Left;
|
|
RadLabel_MinecraftProfile.Location = new Point(3, 4);
|
|
RadLabel_MinecraftProfile.Name = "RadLabel_MinecraftProfile";
|
|
RadLabel_MinecraftProfile.Size = new Size(113, 22);
|
|
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.Name = "RadLabel_ModpackUrl";
|
|
RadLabel_ModpackUrl.Size = new Size(96, 22);
|
|
RadLabel_ModpackUrl.TabIndex = 1;
|
|
RadLabel_ModpackUrl.Text = "Modpack URL";
|
|
//
|
|
// RadTextBox_MinecraftProfileFolder
|
|
//
|
|
RadTextBox_MinecraftProfileFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadTextBox_MinecraftProfileFolder, 3);
|
|
RadTextBox_MinecraftProfileFolder.Location = new Point(122, 3);
|
|
RadTextBox_MinecraftProfileFolder.Name = "RadTextBox_MinecraftProfileFolder";
|
|
RadTextBox_MinecraftProfileFolder.NullText = "C:\\Users\\...\\AppData\\...";
|
|
RadTextBox_MinecraftProfileFolder.Size = new Size(197, 24);
|
|
RadTextBox_MinecraftProfileFolder.TabIndex = 1;
|
|
RadTextBox_MinecraftProfileFolder.TextChanged += RadTextBox_MinecraftFolder_TextInserted;
|
|
//
|
|
// RadTextBox_ModpackConfig
|
|
//
|
|
RadTextBox_ModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadTextBox_ModpackConfig, 5);
|
|
RadTextBox_ModpackConfig.Location = new Point(122, 33);
|
|
RadTextBox_ModpackConfig.Name = "RadTextBox_ModpackConfig";
|
|
RadTextBox_ModpackConfig.NullText = "https://...";
|
|
RadTextBox_ModpackConfig.Size = new Size(297, 24);
|
|
RadTextBox_ModpackConfig.TabIndex = 3;
|
|
RadTextBox_ModpackConfig.TextChanged += RadTextBox_ModpackUrl_TextInserted;
|
|
//
|
|
// RadButton_Install
|
|
//
|
|
RadButton_Install.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_Install, 2);
|
|
RadButton_Install.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_Install.Items.AddRange(new Telerik.WinControls.RadItem[] { radMenuItem_Install, radMenuItem_Repair });
|
|
RadButton_Install.Location = new Point(325, 121);
|
|
RadButton_Install.Name = "RadButton_Install";
|
|
RadButton_Install.Size = new Size(94, 24);
|
|
RadButton_Install.TabIndex = 0;
|
|
RadButton_Install.Text = "Install";
|
|
RadButton_Install.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_Install.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
//
|
|
// radMenuItem_Install
|
|
//
|
|
radMenuItem_Install.Name = "radMenuItem_Install";
|
|
radMenuItem_Install.Text = "Install";
|
|
radMenuItem_Install.Click += RadMenuItem_Install_Click;
|
|
//
|
|
// radMenuItem_Repair
|
|
//
|
|
radMenuItem_Repair.Name = "radMenuItem_Repair";
|
|
radMenuItem_Repair.Text = "Repair";
|
|
radMenuItem_Repair.Click += RadMenuItem_Repair_Click;
|
|
//
|
|
// RadButton_CheckForUpdates
|
|
//
|
|
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.Name = "RadButton_CheckForUpdates";
|
|
RadButton_CheckForUpdates.Size = new Size(197, 24);
|
|
RadButton_CheckForUpdates.TabIndex = 100;
|
|
RadButton_CheckForUpdates.Text = "Check for Updates";
|
|
RadButton_CheckForUpdates.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_CheckForUpdates.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_CheckForUpdates.Click += ButtonX_CheckForUpdates_Click;
|
|
//
|
|
// RadButton_SearchMinecraftProfileFolder
|
|
//
|
|
RadButton_SearchMinecraftProfileFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_SearchMinecraftProfileFolder, 2);
|
|
RadButton_SearchMinecraftProfileFolder.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_SearchMinecraftProfileFolder.Location = new Point(325, 3);
|
|
RadButton_SearchMinecraftProfileFolder.Name = "RadButton_SearchMinecraftProfileFolder";
|
|
RadButton_SearchMinecraftProfileFolder.Size = new Size(94, 24);
|
|
RadButton_SearchMinecraftProfileFolder.TabIndex = 2;
|
|
RadButton_SearchMinecraftProfileFolder.Text = "Search";
|
|
RadButton_SearchMinecraftProfileFolder.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_SearchMinecraftProfileFolder.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_SearchMinecraftProfileFolder.Click += ButtonX_SearchMinecraftProfile_Click;
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
tableLayoutPanel1.AutoSize = true;
|
|
tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
|
tableLayoutPanel1.ColumnCount = 6;
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle());
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F));
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F));
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F));
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F));
|
|
tableLayoutPanel1.Controls.Add(RadLabel_MinecraftProfile, 0, 0);
|
|
tableLayoutPanel1.Controls.Add(RadLabel_ModpackUrl, 0, 1);
|
|
tableLayoutPanel1.Controls.Add(RadTextBox_MinecraftProfileFolder, 1, 0);
|
|
tableLayoutPanel1.Controls.Add(RadTextBox_ModpackConfig, 1, 1);
|
|
tableLayoutPanel1.Controls.Add(RadLabel_Status, 1, 3);
|
|
tableLayoutPanel1.Controls.Add(RadLabel_StatusDesc, 0, 3);
|
|
tableLayoutPanel1.Controls.Add(RadButton_Install, 4, 4);
|
|
tableLayoutPanel1.Controls.Add(radLabel_InstallationKey, 0, 2);
|
|
tableLayoutPanel1.Controls.Add(radTextBox_InstallKey, 1, 2);
|
|
tableLayoutPanel1.Controls.Add(RadButton_CheckForUpdates, 1, 4);
|
|
tableLayoutPanel1.Controls.Add(RadButton_SearchMinecraftProfileFolder, 4, 0);
|
|
tableLayoutPanel1.Dock = DockStyle.Fill;
|
|
tableLayoutPanel1.Location = new Point(0, 0);
|
|
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
tableLayoutPanel1.RowCount = 5;
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.Size = new Size(422, 173);
|
|
tableLayoutPanel1.TabIndex = 7;
|
|
//
|
|
// RadLabel_Status
|
|
//
|
|
RadLabel_Status.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadLabel_Status, 5);
|
|
RadLabel_Status.Location = new Point(122, 93);
|
|
RadLabel_Status.Name = "RadLabel_Status";
|
|
RadLabel_Status.Size = new Size(13, 22);
|
|
RadLabel_Status.TabIndex = 3;
|
|
RadLabel_Status.Text = "-";
|
|
RadLabel_Status.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
//
|
|
// RadLabel_StatusDesc
|
|
//
|
|
RadLabel_StatusDesc.Anchor = AnchorStyles.Left;
|
|
RadLabel_StatusDesc.Location = new Point(3, 93);
|
|
RadLabel_StatusDesc.Name = "RadLabel_StatusDesc";
|
|
RadLabel_StatusDesc.Size = new Size(46, 22);
|
|
RadLabel_StatusDesc.TabIndex = 2;
|
|
RadLabel_StatusDesc.Text = "Status";
|
|
//
|
|
// radLabel_InstallationKey
|
|
//
|
|
radLabel_InstallationKey.Anchor = AnchorStyles.Left;
|
|
radLabel_InstallationKey.Location = new Point(3, 64);
|
|
radLabel_InstallationKey.Name = "radLabel_InstallationKey";
|
|
radLabel_InstallationKey.Size = new Size(102, 22);
|
|
radLabel_InstallationKey.TabIndex = 12;
|
|
radLabel_InstallationKey.Text = "Installation key";
|
|
radLabel_InstallationKey.Visible = false;
|
|
//
|
|
// radTextBox_InstallKey
|
|
//
|
|
radTextBox_InstallKey.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(radTextBox_InstallKey, 5);
|
|
radTextBox_InstallKey.Location = new Point(122, 63);
|
|
radTextBox_InstallKey.Name = "radTextBox_InstallKey";
|
|
radTextBox_InstallKey.NullText = "AAAAA-BBBBB-CCCCC-DDDDD-EEEEE";
|
|
radTextBox_InstallKey.Size = new Size(297, 24);
|
|
radTextBox_InstallKey.TabIndex = 4;
|
|
radTextBox_InstallKey.Visible = false;
|
|
radTextBox_InstallKey.TextChanged += RadTextBox_InstallationKey_TextInserted;
|
|
//
|
|
// MainForm
|
|
//
|
|
AutoScaleBaseSize = new Size(7, 15);
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
AutoSize = true;
|
|
AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
|
ClientSize = new Size(422, 173);
|
|
Controls.Add(tableLayoutPanel1);
|
|
MaximizeBox = false;
|
|
MinimumSize = new Size(430, 0);
|
|
Name = "MainForm";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "Minecraft Modpack Updater";
|
|
FormClosing += Form1_FormClosing;
|
|
Load += Form1_Load;
|
|
Shown += Form1_Shown;
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_MinecraftProfile).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_ModpackUrl).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBox_MinecraftProfileFolder).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBox_ModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_Install).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_CheckForUpdates).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).EndInit();
|
|
tableLayoutPanel1.ResumeLayout(false);
|
|
tableLayoutPanel1.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_Status).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_StatusDesc).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)radLabel_InstallationKey).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)radTextBox_InstallKey).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)this).EndInit();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel_MinecraftProfile;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel_ModpackUrl;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl RadTextBox_MinecraftProfileFolder;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl RadTextBox_ModpackConfig;
|
|
internal Telerik.WinControls.UI.RadSplitButton RadButton_Install;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_CheckForUpdates;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_SearchMinecraftProfileFolder;
|
|
private TableLayoutPanel tableLayoutPanel1;
|
|
internal Telerik.WinControls.UI.RadLabel radLabel_InstallationKey;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl radTextBox_InstallKey;
|
|
private Telerik.WinControls.UI.RadMenuItem radMenuItem_Repair;
|
|
private Telerik.WinControls.UI.RadMenuItem radMenuItem_Install;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel_Status;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel_StatusDesc;
|
|
}
|
|
} |