240 lines
9.7 KiB
C#
240 lines
9.7 KiB
C#
|
|
namespace UnshackleGUI
|
|||
|
|
{
|
|||
|
|
partial class MainForm
|
|||
|
|
{
|
|||
|
|
private System.ComponentModel.IContainer components = null;
|
|||
|
|
private System.Windows.Forms.TextBox txtRootPath;
|
|||
|
|
private System.Windows.Forms.TextBox txtBinName;
|
|||
|
|
private System.Windows.Forms.ComboBox comboProfiles;
|
|||
|
|
private System.Windows.Forms.Button btnAddProfile;
|
|||
|
|
private System.Windows.Forms.Button btnRemoveProfile;
|
|||
|
|
private System.Windows.Forms.ComboBox comboService;
|
|||
|
|
private System.Windows.Forms.TextBox txtURL;
|
|||
|
|
private System.Windows.Forms.TextBox txtCommandPreview;
|
|||
|
|
private System.Windows.Forms.Button btnRun;
|
|||
|
|
private System.Windows.Forms.Button btnStop;
|
|||
|
|
private System.Windows.Forms.Button btnOpenCookies;
|
|||
|
|
private System.Windows.Forms.Button btnEditServiceConfig; // New
|
|||
|
|
private System.Windows.Forms.Button btnEditYaml;
|
|||
|
|
private System.Windows.Forms.Button btnBrowse;
|
|||
|
|
private System.Windows.Forms.Button btnClearLog;
|
|||
|
|
private System.Windows.Forms.TextBox txtLog;
|
|||
|
|
private System.Windows.Forms.PropertyGrid pgProfile;
|
|||
|
|
private System.Windows.Forms.Label lblPath;
|
|||
|
|
|
|||
|
|
protected override void Dispose(bool disposing) { if (disposing && (components != null)) components.Dispose(); base.Dispose(disposing); }
|
|||
|
|
|
|||
|
|
private void InitializeComponent()
|
|||
|
|
{
|
|||
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|||
|
|
txtRootPath = new TextBox();
|
|||
|
|
txtBinName = new TextBox();
|
|||
|
|
comboProfiles = new ComboBox();
|
|||
|
|
btnAddProfile = new Button();
|
|||
|
|
btnRemoveProfile = new Button();
|
|||
|
|
comboService = new ComboBox();
|
|||
|
|
txtURL = new TextBox();
|
|||
|
|
txtCommandPreview = new TextBox();
|
|||
|
|
btnRun = new Button();
|
|||
|
|
btnStop = new Button();
|
|||
|
|
btnOpenCookies = new Button();
|
|||
|
|
btnEditServiceConfig = new Button();
|
|||
|
|
btnEditYaml = new Button();
|
|||
|
|
btnBrowse = new Button();
|
|||
|
|
btnClearLog = new Button();
|
|||
|
|
txtLog = new TextBox();
|
|||
|
|
pgProfile = new PropertyGrid();
|
|||
|
|
lblPath = new Label();
|
|||
|
|
SuspendLayout();
|
|||
|
|
//
|
|||
|
|
// txtRootPath
|
|||
|
|
//
|
|||
|
|
txtRootPath.Location = new Point(12, 35);
|
|||
|
|
txtRootPath.Name = "txtRootPath";
|
|||
|
|
txtRootPath.Size = new Size(280, 27);
|
|||
|
|
txtRootPath.TabIndex = 0;
|
|||
|
|
//
|
|||
|
|
// txtBinName
|
|||
|
|
//
|
|||
|
|
txtBinName.Location = new Point(340, 35);
|
|||
|
|
txtBinName.Name = "txtBinName";
|
|||
|
|
txtBinName.Size = new Size(60, 27);
|
|||
|
|
txtBinName.TabIndex = 2;
|
|||
|
|
//
|
|||
|
|
// comboProfiles
|
|||
|
|
//
|
|||
|
|
comboProfiles.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
comboProfiles.Location = new Point(1177, 35);
|
|||
|
|
comboProfiles.Name = "comboProfiles";
|
|||
|
|
comboProfiles.Size = new Size(240, 28);
|
|||
|
|
comboProfiles.TabIndex = 4;
|
|||
|
|
//
|
|||
|
|
// btnAddProfile
|
|||
|
|
//
|
|||
|
|
btnAddProfile.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
btnAddProfile.Location = new Point(1422, 34);
|
|||
|
|
btnAddProfile.Name = "btnAddProfile";
|
|||
|
|
btnAddProfile.Size = new Size(35, 29);
|
|||
|
|
btnAddProfile.TabIndex = 5;
|
|||
|
|
btnAddProfile.Text = "+";
|
|||
|
|
//
|
|||
|
|
// btnRemoveProfile
|
|||
|
|
//
|
|||
|
|
btnRemoveProfile.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
btnRemoveProfile.Location = new Point(1462, 34);
|
|||
|
|
btnRemoveProfile.Name = "btnRemoveProfile";
|
|||
|
|
btnRemoveProfile.Size = new Size(35, 29);
|
|||
|
|
btnRemoveProfile.TabIndex = 6;
|
|||
|
|
btnRemoveProfile.Text = "-";
|
|||
|
|
//
|
|||
|
|
// comboService
|
|||
|
|
//
|
|||
|
|
comboService.Location = new Point(12, 80);
|
|||
|
|
comboService.Name = "comboService";
|
|||
|
|
comboService.Size = new Size(100, 28);
|
|||
|
|
comboService.TabIndex = 7;
|
|||
|
|
//
|
|||
|
|
// txtURL
|
|||
|
|
//
|
|||
|
|
txtURL.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|||
|
|
txtURL.Location = new Point(115, 80);
|
|||
|
|
txtURL.Name = "txtURL";
|
|||
|
|
txtURL.PlaceholderText = "Paste ID / URL here...";
|
|||
|
|
txtURL.Size = new Size(801, 27);
|
|||
|
|
txtURL.TabIndex = 8;
|
|||
|
|
//
|
|||
|
|
// txtCommandPreview
|
|||
|
|
//
|
|||
|
|
txtCommandPreview.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|||
|
|
txtCommandPreview.BackColor = Color.FromArgb(20, 20, 20);
|
|||
|
|
txtCommandPreview.Font = new Font("Consolas", 10F, FontStyle.Bold);
|
|||
|
|
txtCommandPreview.ForeColor = Color.Cyan;
|
|||
|
|
txtCommandPreview.Location = new Point(12, 115);
|
|||
|
|
txtCommandPreview.Name = "txtCommandPreview";
|
|||
|
|
txtCommandPreview.Size = new Size(1130, 27);
|
|||
|
|
txtCommandPreview.TabIndex = 9;
|
|||
|
|
//
|
|||
|
|
// btnRun
|
|||
|
|
//
|
|||
|
|
btnRun.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|||
|
|
btnRun.Location = new Point(12, 150);
|
|||
|
|
btnRun.Name = "btnRun";
|
|||
|
|
btnRun.Size = new Size(1130, 45);
|
|||
|
|
btnRun.TabIndex = 10;
|
|||
|
|
btnRun.Text = "RUN";
|
|||
|
|
//
|
|||
|
|
// btnStop
|
|||
|
|
//
|
|||
|
|
btnStop.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|||
|
|
btnStop.BackColor = Color.Maroon;
|
|||
|
|
btnStop.Location = new Point(12, 150);
|
|||
|
|
btnStop.Name = "btnStop";
|
|||
|
|
btnStop.Size = new Size(1130, 45);
|
|||
|
|
btnStop.TabIndex = 11;
|
|||
|
|
btnStop.Text = "STOP";
|
|||
|
|
btnStop.UseVisualStyleBackColor = false;
|
|||
|
|
btnStop.Visible = false;
|
|||
|
|
//
|
|||
|
|
// btnOpenCookies
|
|||
|
|
//
|
|||
|
|
btnOpenCookies.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
btnOpenCookies.Location = new Point(922, 79);
|
|||
|
|
btnOpenCookies.Name = "btnOpenCookies";
|
|||
|
|
btnOpenCookies.Size = new Size(115, 30);
|
|||
|
|
btnOpenCookies.TabIndex = 12;
|
|||
|
|
btnOpenCookies.Text = "🍪 Cookies";
|
|||
|
|
//
|
|||
|
|
// btnEditServiceConfig
|
|||
|
|
//
|
|||
|
|
btnEditServiceConfig.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
btnEditServiceConfig.Location = new Point(1043, 79);
|
|||
|
|
btnEditServiceConfig.Name = "btnEditServiceConfig";
|
|||
|
|
btnEditServiceConfig.Size = new Size(99, 30);
|
|||
|
|
btnEditServiceConfig.TabIndex = 13;
|
|||
|
|
btnEditServiceConfig.Text = "⚙️ Service";
|
|||
|
|
//
|
|||
|
|
// btnEditYaml
|
|||
|
|
//
|
|||
|
|
btnEditYaml.Location = new Point(410, 34);
|
|||
|
|
btnEditYaml.Name = "btnEditYaml";
|
|||
|
|
btnEditYaml.Size = new Size(144, 29);
|
|||
|
|
btnEditYaml.TabIndex = 3;
|
|||
|
|
btnEditYaml.Text = "📝 Main Config";
|
|||
|
|
//
|
|||
|
|
// btnBrowse
|
|||
|
|
//
|
|||
|
|
btnBrowse.Location = new Point(295, 34);
|
|||
|
|
btnBrowse.Name = "btnBrowse";
|
|||
|
|
btnBrowse.Size = new Size(35, 29);
|
|||
|
|
btnBrowse.TabIndex = 1;
|
|||
|
|
btnBrowse.Text = "📂";
|
|||
|
|
//
|
|||
|
|
// btnClearLog
|
|||
|
|
//
|
|||
|
|
btnClearLog.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|||
|
|
btnClearLog.Location = new Point(1022, 201);
|
|||
|
|
btnClearLog.Name = "btnClearLog";
|
|||
|
|
btnClearLog.Size = new Size(120, 36);
|
|||
|
|
btnClearLog.TabIndex = 14;
|
|||
|
|
btnClearLog.Text = "Clear Log";
|
|||
|
|
//
|
|||
|
|
// txtLog
|
|||
|
|
//
|
|||
|
|
txtLog.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|||
|
|
txtLog.BackColor = Color.Black;
|
|||
|
|
txtLog.Font = new Font("Consolas", 9F);
|
|||
|
|
txtLog.ForeColor = Color.Lime;
|
|||
|
|
txtLog.Location = new Point(12, 243);
|
|||
|
|
txtLog.Multiline = true;
|
|||
|
|
txtLog.Name = "txtLog";
|
|||
|
|
txtLog.ScrollBars = ScrollBars.Vertical;
|
|||
|
|
txtLog.Size = new Size(1130, 550);
|
|||
|
|
txtLog.TabIndex = 15;
|
|||
|
|
//
|
|||
|
|
// pgProfile
|
|||
|
|
//
|
|||
|
|
pgProfile.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|||
|
|
pgProfile.CategoryForeColor = SystemColors.ActiveCaption;
|
|||
|
|
pgProfile.Location = new Point(1177, 80);
|
|||
|
|
pgProfile.Name = "pgProfile";
|
|||
|
|
pgProfile.Size = new Size(320, 713);
|
|||
|
|
pgProfile.TabIndex = 16;
|
|||
|
|
//
|
|||
|
|
// lblPath
|
|||
|
|
//
|
|||
|
|
lblPath.Location = new Point(12, 12);
|
|||
|
|
lblPath.Name = "lblPath";
|
|||
|
|
lblPath.Size = new Size(150, 23);
|
|||
|
|
lblPath.TabIndex = 17;
|
|||
|
|
lblPath.Text = "Root Path & Binary:";
|
|||
|
|
//
|
|||
|
|
// MainForm
|
|||
|
|
//
|
|||
|
|
ClientSize = new Size(1519, 808);
|
|||
|
|
Controls.Add(txtRootPath);
|
|||
|
|
Controls.Add(btnBrowse);
|
|||
|
|
Controls.Add(txtBinName);
|
|||
|
|
Controls.Add(btnEditYaml);
|
|||
|
|
Controls.Add(comboProfiles);
|
|||
|
|
Controls.Add(btnAddProfile);
|
|||
|
|
Controls.Add(btnRemoveProfile);
|
|||
|
|
Controls.Add(comboService);
|
|||
|
|
Controls.Add(txtURL);
|
|||
|
|
Controls.Add(txtCommandPreview);
|
|||
|
|
Controls.Add(btnRun);
|
|||
|
|
Controls.Add(btnStop);
|
|||
|
|
Controls.Add(btnOpenCookies);
|
|||
|
|
Controls.Add(btnEditServiceConfig);
|
|||
|
|
Controls.Add(btnClearLog);
|
|||
|
|
Controls.Add(txtLog);
|
|||
|
|
Controls.Add(pgProfile);
|
|||
|
|
Controls.Add(lblPath);
|
|||
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|||
|
|
MinimumSize = new Size(960, 680);
|
|||
|
|
Name = "MainForm";
|
|||
|
|
Text = "Unshackle Master GUI";
|
|||
|
|
ResumeLayout(false);
|
|||
|
|
PerformLayout();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|