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

namespace QC.SmartMatchApp;

public class AddKitValuesDialog : Form
{
	private IContainer components;

	private ComboBox cbRefDesignators;

	private Button button1;

	private Button button2;

	private Label label1;

	public string SelectedItem => cbRefDesignators.SelectedItem.ToString();

	public AddKitValuesDialog(List<string> refDesList)
	{
		InitializeComponent();
		cbRefDesignators.DataSource = refDesList;
		cbRefDesignators.SelectedIndex = 0;
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.cbRefDesignators = new System.Windows.Forms.ComboBox();
		this.button1 = new System.Windows.Forms.Button();
		this.button2 = new System.Windows.Forms.Button();
		this.label1 = new System.Windows.Forms.Label();
		base.SuspendLayout();
		this.cbRefDesignators.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
		this.cbRefDesignators.FormattingEnabled = true;
		this.cbRefDesignators.Location = new System.Drawing.Point(84, 24);
		this.cbRefDesignators.Name = "cbRefDesignators";
		this.cbRefDesignators.Size = new System.Drawing.Size(121, 21);
		this.cbRefDesignators.TabIndex = 0;
		this.button1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
		this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
		this.button1.Location = new System.Drawing.Point(60, 87);
		this.button1.Name = "button1";
		this.button1.Size = new System.Drawing.Size(75, 23);
		this.button1.TabIndex = 1;
		this.button1.Text = "&OK";
		this.button1.UseVisualStyleBackColor = true;
		this.button2.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
		this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
		this.button2.Location = new System.Drawing.Point(141, 87);
		this.button2.Name = "button2";
		this.button2.Size = new System.Drawing.Size(75, 23);
		this.button2.TabIndex = 2;
		this.button2.Text = "&Cancel";
		this.button2.UseVisualStyleBackColor = true;
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(12, 27);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(63, 13);
		this.label1.TabIndex = 3;
		this.label1.Text = "Select Item:";
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(228, 122);
		base.ControlBox = false;
		base.Controls.Add(this.label1);
		base.Controls.Add(this.button2);
		base.Controls.Add(this.button1);
		base.Controls.Add(this.cbRefDesignators);
		this.MinimumSize = new System.Drawing.Size(244, 160);
		base.Name = "AddKitValuesDialog";
		base.ShowIcon = false;
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Add Kit Values";
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
