301 lines
18 KiB
C#
301 lines
18 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_EditModpackConfig = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_PasteModpackConfig = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_SearchModpackConfig = new Telerik.WinControls.UI.RadButton();
|
|
RadButton_SearchMinecraftProfileFolder = new Telerik.WinControls.UI.RadButton();
|
|
tableLayoutPanel1 = new TableLayoutPanel();
|
|
((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_EditModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_PasteModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchModpackConfig).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).BeginInit();
|
|
tableLayoutPanel1.SuspendLayout();
|
|
((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, 119);
|
|
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, 119);
|
|
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 file loaded!";
|
|
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.Image = My.Resources.MySymbols.icons8_software_installer_16px;
|
|
RadButton_Install.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_Install.Location = new Point(325, 147);
|
|
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.Image = My.Resources.MySymbols.icons8_update_16px;
|
|
RadButton_CheckForUpdates.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_CheckForUpdates.Location = new Point(175, 147);
|
|
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_EditModpackConfig
|
|
//
|
|
RadButton_EditModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
RadButton_EditModpackConfig.Image = My.Resources.MySymbols.icons8_wrench_16px;
|
|
RadButton_EditModpackConfig.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_EditModpackConfig.Location = new Point(3, 147);
|
|
RadButton_EditModpackConfig.Name = "RadButton_EditModpackConfig";
|
|
RadButton_EditModpackConfig.Size = new Size(144, 24);
|
|
RadButton_EditModpackConfig.TabIndex = 8;
|
|
RadButton_EditModpackConfig.Text = "Edit modpack config";
|
|
RadButton_EditModpackConfig.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_EditModpackConfig.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_EditModpackConfig.Visible = false;
|
|
//
|
|
// RadButton_PasteModpackConfig
|
|
//
|
|
RadButton_PasteModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_PasteModpackConfig, 2);
|
|
RadButton_PasteModpackConfig.Image = (Image)resources.GetObject("RadButton_PasteModpackConfig.Image");
|
|
RadButton_PasteModpackConfig.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_PasteModpackConfig.Location = new Point(225, 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_SearchModpackConfig
|
|
//
|
|
RadButton_SearchModpackConfig.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_SearchModpackConfig, 2);
|
|
RadButton_SearchModpackConfig.Image = (Image)resources.GetObject("RadButton_SearchModpackConfig.Image");
|
|
RadButton_SearchModpackConfig.ImageAlignment = ContentAlignment.MiddleRight;
|
|
RadButton_SearchModpackConfig.Location = new Point(325, 89);
|
|
RadButton_SearchModpackConfig.Name = "RadButton_SearchModpackConfig";
|
|
RadButton_SearchModpackConfig.Size = new Size(94, 24);
|
|
RadButton_SearchModpackConfig.TabIndex = 7;
|
|
RadButton_SearchModpackConfig.Text = "Search";
|
|
RadButton_SearchModpackConfig.TextAlignment = ContentAlignment.MiddleLeft;
|
|
RadButton_SearchModpackConfig.TextImageRelation = TextImageRelation.ImageBeforeText;
|
|
RadButton_SearchModpackConfig.Click += ButtonX_SearchUpdateConfig_Click;
|
|
//
|
|
// RadButton_SearchMinecraftProfileFolder
|
|
//
|
|
RadButton_SearchMinecraftProfileFolder.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
tableLayoutPanel1.SetColumnSpan(RadButton_SearchMinecraftProfileFolder, 2);
|
|
RadButton_SearchMinecraftProfileFolder.Image = (Image)resources.GetObject("RadButton_SearchMinecraftProfileFolder.Image");
|
|
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, 5);
|
|
tableLayoutPanel1.Controls.Add(RadLabel1, 0, 0);
|
|
tableLayoutPanel1.Controls.Add(RadLabel2, 0, 2);
|
|
tableLayoutPanel1.Controls.Add(RadButton_EditModpackConfig, 0, 5);
|
|
tableLayoutPanel1.Controls.Add(RadTextBoxControl_MinecraftProfileFolder, 1, 0);
|
|
tableLayoutPanel1.Controls.Add(RadTextBoxControl_ModpackConfig, 1, 2);
|
|
tableLayoutPanel1.Controls.Add(RadLabel_Status, 1, 4);
|
|
tableLayoutPanel1.Controls.Add(RadLabel3, 0, 4);
|
|
tableLayoutPanel1.Controls.Add(RadButton_SearchMinecraftProfileFolder, 5, 1);
|
|
tableLayoutPanel1.Controls.Add(RadButton_SearchModpackConfig, 5, 3);
|
|
tableLayoutPanel1.Controls.Add(RadButton_PasteModpackConfig, 3, 3);
|
|
tableLayoutPanel1.Controls.Add(RadButton_Install, 5, 5);
|
|
tableLayoutPanel1.Dock = DockStyle.Fill;
|
|
tableLayoutPanel1.Location = new Point(0, 0);
|
|
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
tableLayoutPanel1.RowCount = 6;
|
|
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, 174);
|
|
tableLayoutPanel1.TabIndex = 7;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleBaseSize = new Size(7, 15);
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(422, 174);
|
|
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_EditModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_PasteModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchModpackConfig).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)RadButton_SearchMinecraftProfileFolder).EndInit();
|
|
tableLayoutPanel1.ResumeLayout(false);
|
|
((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_EditModpackConfig;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_SearchModpackConfig;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_SearchMinecraftProfileFolder;
|
|
internal Telerik.WinControls.UI.RadButton RadButton_PasteModpackConfig;
|
|
private TableLayoutPanel tableLayoutPanel1;
|
|
}
|
|
} |