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

namespace QDART_MFG_CfgEditor;

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

	private IContainer components;

	private TextBox tbInput;

	private Button btnOK_Input;

	public Input()
	{
		InitializeComponent();
	}

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

	private void btnOK_Input_KeyUp(object sender, KeyEventArgs e)
	{
		btnOK_Input_Click(null, null);
	}

	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(QDART_MFG_CfgEditor.Input));
		this.tbInput = new System.Windows.Forms.TextBox();
		this.btnOK_Input = new System.Windows.Forms.Button();
		base.SuspendLayout();
		this.tbInput.Location = new System.Drawing.Point(12, 12);
		this.tbInput.Name = "tbInput";
		this.tbInput.Size = new System.Drawing.Size(198, 20);
		this.tbInput.TabIndex = 0;
		this.btnOK_Input.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
		this.btnOK_Input.Location = new System.Drawing.Point(229, 9);
		this.btnOK_Input.Name = "btnOK_Input";
		this.btnOK_Input.Size = new System.Drawing.Size(75, 23);
		this.btnOK_Input.TabIndex = 1;
		this.btnOK_Input.Text = "OK";
		this.btnOK_Input.UseVisualStyleBackColor = true;
		this.btnOK_Input.Click += new System.EventHandler(btnOK_Input_Click);
		base.AcceptButton = this.btnOK_Input;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(314, 48);
		base.Controls.Add(this.btnOK_Input);
		base.Controls.Add(this.tbInput);
		base.Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "Input";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Input";
		base.TopMost = true;
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
