using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace QFPT;

public class InputDiag : Form
{
	public string inputString = "";

	private IContainer components;

	private TextBox InputString;

	private Button OK;

	public InputDiag()
	{
		InitializeComponent();
	}

	public void UpdateInputString(string param)
	{
		InputString.Text = param;
	}

	private void OK_Click(object sender, EventArgs e)
	{
		inputString = InputString.Text;
		if (inputString == "")
		{
			MessageBox.Show("Input string can't be empty!");
		}
		else
		{
			Close();
		}
	}

	private void InputDiag_Load(object sender, EventArgs e)
	{
		base.MaximizeBox = false;
		CenterToParent();
	}

	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(QFPT.InputDiag));
		this.InputString = new System.Windows.Forms.TextBox();
		this.OK = new System.Windows.Forms.Button();
		base.SuspendLayout();
		this.InputString.Location = new System.Drawing.Point(12, 12);
		this.InputString.Name = "InputString";
		this.InputString.Size = new System.Drawing.Size(444, 23);
		this.InputString.TabIndex = 3;
		this.OK.Location = new System.Drawing.Point(460, 11);
		this.OK.Name = "OK";
		this.OK.Size = new System.Drawing.Size(60, 23);
		this.OK.TabIndex = 4;
		this.OK.Text = "OK";
		this.OK.UseVisualStyleBackColor = true;
		this.OK.Click += new System.EventHandler(OK_Click);
		base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 16f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(524, 46);
		base.Controls.Add(this.OK);
		base.Controls.Add(this.InputString);
		this.Font = new System.Drawing.Font("Arial", 10f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
		base.Name = "InputDiag";
		this.Text = "Input name";
		base.Load += new System.EventHandler(InputDiag_Load);
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
