327 lines
19 KiB
C#
327 lines
19 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ModpackUpdater
|
|
{
|
|
[Microsoft.VisualBasic.CompilerServices.DesignerGenerated()]
|
|
|
|
public partial class Form1 : 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()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
|
RadLabel1 = new Telerik.WinControls.UI.RadLabel();
|
|
RadLabel2 = new Telerik.WinControls.UI.RadLabel();
|
|
RadLabel3 = new Telerik.WinControls.UI.RadLabel();
|
|
RadLabel_Status = new Telerik.WinControls.UI.RadLabel();
|
|
RadTextBoxControl_MinecraftProfileFolder = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
RadTextBoxControl_ModpackConfig = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
RadButton_Install = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_CheckForUpdates = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_PasteModpackConfig = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_SearchMinecraftProfileFolder = new Telerik.WinControls.UI.RadButton();
|
|
tableLayoutPanel1 = new TableLayoutPanel();
|
|
radLabel4 = new Telerik.WinControls.UI.RadLabel();
|
|
radTextBoxControl_InstallKey = new Telerik.WinControls.UI.RadTextBoxControl();
|
|
radButton_PasteInstallKey = new Telerik.WinControls.UI.RadButton();
|
|
radButton_RefreshConfig = new Telerik.WinControls.UI.RadButton();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel1).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel2).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel3).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_Status).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBoxControl_MinecraftProfileFolder).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBoxControl_ModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_Install).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_CheckForUpdates).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_PasteModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).BeginInit();
|
|
tableLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)radLabel4).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)radTextBoxControl_InstallKey).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)radButton_PasteInstallKey).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)radButton_RefreshConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)this).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// RadLabel1
|
|
//
|
|
RadLabel1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
RadLabel1.AutoSize = false;
|
|
RadLabel1.Location = new Point(3, 3);
|
|
RadLabel1.Name = "RadLabel1";
|
|
RadLabel1.Size = new Size(144, 22);
|
|
RadLabel1.TabIndex = 0;
|
|
RadLabel1.Text = "Minecraft profile folder:";
|
|
//
|
|
// RadLabel2
|
|
//
|
|
RadLabel2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
RadLabel2.AutoSize = false;
|
|
RadLabel2.Location = new Point(3, 61);
|
|
RadLabel2.Name = "RadLabel2";
|
|
RadLabel2.Size = new Size(144, 22);
|
|
RadLabel2.TabIndex = 1;
|
|
RadLabel2.Text = "Modpack config:";
|
|
//
|
|
// RadLabel3
|
|
//
|
|
RadLabel3.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
RadLabel3.AutoSize = false;
|
|
RadLabel3.Location = new Point(3, 177);
|
|
RadLabel3.Name = "RadLabel3";
|
|
RadLabel3.Size = new Size(144, 22);
|
|
RadLabel3.TabIndex = 2;
|
|
RadLabel3.Text = "Status:";
|
|
//
|
|
// RadLabel_Status
|
|
//
|
|
RadLabel_Status.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
RadLabel_Status.AutoSize = false;
|
|
tableLayoutPanel1.SetColumnSpan(RadLabel_Status, 6);
|
|
RadLabel_Status.Location = new Point(153, 177);
|
|
RadLabel_Status.Name = "RadLabel_Status";
|
|
RadLabel_Status.Size = new Size(266, 22);
|
|
RadLabel_Status.TabIndex = 3;
|
|
RadLabel_Status.Text = "-";
|
|
RadLabel_Status.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
//
|
|
// RadTextBoxControl_MinecraftProfileFolder
|
|
//
|
|
RadTextBoxControl_MinecraftProfileFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadTextBoxControl_MinecraftProfileFolder, 6);
|
|
RadTextBoxControl_MinecraftProfileFolder.IsReadOnly = true;
|
|
RadTextBoxControl_MinecraftProfileFolder.Location = new Point(153, 3);
|
|
RadTextBoxControl_MinecraftProfileFolder.Name = "RadTextBoxControl_MinecraftProfileFolder";
|
|
RadTextBoxControl_MinecraftProfileFolder.NullText = "No file loaded!";
|
|
RadTextBoxControl_MinecraftProfileFolder.Size = new Size(266, 22);
|
|
RadTextBoxControl_MinecraftProfileFolder.TabIndex = 4;
|
|
//
|
|
// RadTextBoxControl_ModpackConfig
|
|
//
|
|
RadTextBoxControl_ModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadTextBoxControl_ModpackConfig, 6);
|
|
RadTextBoxControl_ModpackConfig.IsReadOnly = true;
|
|
RadTextBoxControl_ModpackConfig.Location = new Point(153, 61);
|
|
RadTextBoxControl_ModpackConfig.Name = "RadTextBoxControl_ModpackConfig";
|
|
RadTextBoxControl_ModpackConfig.NullText = "No config url provided.";
|
|
RadTextBoxControl_ModpackConfig.Size = new Size(266, 22);
|
|
RadTextBoxControl_ModpackConfig.TabIndex = 5;
|
|
//
|
|
// RadButton_Install
|
|
//
|
|
RadButton_Install.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_Install, 2);
|
|
RadButton_Install.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_Install.Location = new Point(325, 205);
|
|
RadButton_Install.Name = "RadButton_Install";
|
|
RadButton_Install.Size = new Size(94, 24);
|
|
RadButton_Install.TabIndex = 10;
|
|
RadButton_Install.Text = "Install";
|
|
RadButton_Install.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_Install.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_Install.Click += ButtonX_StartUpdate_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(175, 205);
|
|
RadButton_CheckForUpdates.Name = "RadButton_CheckForUpdates";
|
|
RadButton_CheckForUpdates.Size = new Size(144, 24);
|
|
RadButton_CheckForUpdates.TabIndex = 0;
|
|
RadButton_CheckForUpdates.Text = "Check for Updates";
|
|
RadButton_CheckForUpdates.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_CheckForUpdates.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_CheckForUpdates.Click += ButtonX_CheckForUpdates_Click;
|
|
//
|
|
// RadButton_PasteModpackConfig
|
|
//
|
|
RadButton_PasteModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_PasteModpackConfig, 2);
|
|
RadButton_PasteModpackConfig.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_PasteModpackConfig.Location = new Point(325, 89);
|
|
RadButton_PasteModpackConfig.Name = "RadButton_PasteModpackConfig";
|
|
RadButton_PasteModpackConfig.Size = new Size(94, 24);
|
|
RadButton_PasteModpackConfig.TabIndex = 7;
|
|
RadButton_PasteModpackConfig.Text = "Paste";
|
|
RadButton_PasteModpackConfig.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_PasteModpackConfig.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_PasteModpackConfig.Click += RadButton_PasteModpackConfig_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, 31);
|
|
RadButton_SearchMinecraftProfileFolder.Name = "RadButton_SearchMinecraftProfileFolder";
|
|
RadButton_SearchMinecraftProfileFolder.Size = new Size(94, 24);
|
|
RadButton_SearchMinecraftProfileFolder.TabIndex = 6;
|
|
RadButton_SearchMinecraftProfileFolder.Text = "Search";
|
|
RadButton_SearchMinecraftProfileFolder.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_SearchMinecraftProfileFolder.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_SearchMinecraftProfileFolder.Click += ButtonX_SearchMinecraftProfile_Click;
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
tableLayoutPanel1.ColumnCount = 7;
|
|
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 150F));
|
|
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.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F));
|
|
tableLayoutPanel1.Controls.Add(RadButton_CheckForUpdates, 2, 7);
|
|
tableLayoutPanel1.Controls.Add(RadLabel1, 0, 0);
|
|
tableLayoutPanel1.Controls.Add(RadLabel2, 0, 2);
|
|
tableLayoutPanel1.Controls.Add(RadTextBoxControl_MinecraftProfileFolder, 1, 0);
|
|
tableLayoutPanel1.Controls.Add(RadTextBoxControl_ModpackConfig, 1, 2);
|
|
tableLayoutPanel1.Controls.Add(RadLabel_Status, 1, 6);
|
|
tableLayoutPanel1.Controls.Add(RadLabel3, 0, 6);
|
|
tableLayoutPanel1.Controls.Add(RadButton_SearchMinecraftProfileFolder, 5, 1);
|
|
tableLayoutPanel1.Controls.Add(RadButton_Install, 5, 7);
|
|
tableLayoutPanel1.Controls.Add(radLabel4, 0, 4);
|
|
tableLayoutPanel1.Controls.Add(radTextBoxControl_InstallKey, 1, 4);
|
|
tableLayoutPanel1.Controls.Add(radButton_PasteInstallKey, 5, 5);
|
|
tableLayoutPanel1.Controls.Add(RadButton_PasteModpackConfig, 5, 3);
|
|
tableLayoutPanel1.Controls.Add(radButton_RefreshConfig, 4, 3);
|
|
tableLayoutPanel1.Dock = DockStyle.Fill;
|
|
tableLayoutPanel1.Location = new Point(0, 0);
|
|
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
tableLayoutPanel1.RowCount = 8;
|
|
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.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.RowStyles.Add(new RowStyle());
|
|
tableLayoutPanel1.Size = new Size(422, 232);
|
|
tableLayoutPanel1.TabIndex = 7;
|
|
//
|
|
// radLabel4
|
|
//
|
|
radLabel4.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
radLabel4.AutoSize = false;
|
|
radLabel4.Location = new Point(3, 119);
|
|
radLabel4.Name = "radLabel4";
|
|
radLabel4.Size = new Size(144, 22);
|
|
radLabel4.TabIndex = 12;
|
|
radLabel4.Text = "Installation key:";
|
|
//
|
|
// radTextBoxControl_InstallKey
|
|
//
|
|
radTextBoxControl_InstallKey.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(radTextBoxControl_InstallKey, 6);
|
|
radTextBoxControl_InstallKey.IsReadOnly = true;
|
|
radTextBoxControl_InstallKey.Location = new Point(153, 119);
|
|
radTextBoxControl_InstallKey.Name = "radTextBoxControl_InstallKey";
|
|
radTextBoxControl_InstallKey.NullText = "No key provided. Only for private servers.";
|
|
radTextBoxControl_InstallKey.Size = new Size(266, 22);
|
|
radTextBoxControl_InstallKey.TabIndex = 13;
|
|
//
|
|
// radButton_PasteInstallKey
|
|
//
|
|
radButton_PasteInstallKey.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(radButton_PasteInstallKey, 2);
|
|
radButton_PasteInstallKey.ImageAlignment = ContentAlignment.MiddleRight;
|
|
radButton_PasteInstallKey.Location = new Point(325, 147);
|
|
radButton_PasteInstallKey.Name = "radButton_PasteInstallKey";
|
|
radButton_PasteInstallKey.Size = new Size(94, 24);
|
|
radButton_PasteInstallKey.TabIndex = 14;
|
|
radButton_PasteInstallKey.Text = "Paste";
|
|
radButton_PasteInstallKey.TextAlignment = ContentAlignment.MiddleLeft;
|
|
radButton_PasteInstallKey.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
radButton_PasteInstallKey.Click += RadButton_PasteInstallKey_Click;
|
|
//
|
|
// radButton_RefreshConfig
|
|
//
|
|
radButton_RefreshConfig.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
radButton_RefreshConfig.DisplayStyle = Telerik.WinControls.DisplayStyle.Image;
|
|
radButton_RefreshConfig.ImageAlignment = ContentAlignment.MiddleCenter;
|
|
radButton_RefreshConfig.Location = new Point(295, 89);
|
|
radButton_RefreshConfig.Name = "radButton_RefreshConfig";
|
|
radButton_RefreshConfig.Size = new Size(24, 24);
|
|
radButton_RefreshConfig.TabIndex = 11;
|
|
radButton_RefreshConfig.Text = "Reload";
|
|
radButton_RefreshConfig.Click += RadButton_RefreshConfig_Click;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleBaseSize = new Size(7, 15);
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(422, 232);
|
|
Controls.Add(tableLayoutPanel1);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
MaximizeBox = false;
|
|
Name = "Form1";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "Minecraft Modpack Updater";
|
|
FormClosing += Form1_FormClosing;
|
|
Load += Form1_Load;
|
|
Shown += Form1_Shown;
|
|
((System.ComponentModel.ISupportInitialize)RadLabel1).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel2).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel3).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadLabel_Status).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBoxControl_MinecraftProfileFolder).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadTextBoxControl_ModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_Install).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_CheckForUpdates).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_PasteModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).EndInit();
|
|
tableLayoutPanel1.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)radLabel4).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)radTextBoxControl_InstallKey).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)radButton_PasteInstallKey).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)radButton_RefreshConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)this).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel1;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel2;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel3;
|
|
internal Telerik.WinControls.UI.RadLabel RadLabel_Status;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl RadTextBoxControl_MinecraftProfileFolder;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl RadTextBoxControl_ModpackConfig;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_Install;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_CheckForUpdates;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_SearchMinecraftProfileFolder;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_PasteModpackConfig;
|
|
private TableLayoutPanel tableLayoutPanel1;
|
|
private Telerik.WinControls.UI.RadButton radButton_RefreshConfig;
|
|
internal Telerik.WinControls.UI.RadLabel radLabel4;
|
|
internal Telerik.WinControls.UI.RadTextBoxControl radTextBoxControl_InstallKey;
|
|
internal Telerik.WinControls.UI.RadButton radButton_PasteInstallKey;
|
|
}
|
|
} |