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

namespace QC.SmartMatchApp;

public class TrialsControl : UserControl
{
	private string bandClassName;

	private IContainer components;

	public Label labelBandTrials;

	public Button btnClearBandTrials;

	public Button btnAutoGenBandTrials;

	public DataGridView dgBandTrials;

	public DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

	public DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

	public DataGridViewComboBoxColumn dataGridViewComboBoxColumn1;

	public DataGridViewComboBoxColumn dataGridViewComboBoxColumn2;

	public DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

	public DataGridViewComboBoxColumn dataGridViewComboBoxColumn3;

	public DataGridViewComboBoxColumn dataGridViewComboBoxColumn4;

	public string BandClassName
	{
		get
		{
			return bandClassName;
		}
		set
		{
			bandClassName = value;
		}
	}

	public TrialsControl()
	{
		InitializeComponent();
		bandClassName = "";
		labelBandTrials.Text = "Antenna Matching Topology";
	}

	public TrialsControl(string BandClassName)
	{
		InitializeComponent();
		bandClassName = BandClassName;
		labelBandTrials.Text = BandClassName + " PA Matching Topology";
	}

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

	private void InitializeComponent()
	{
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
		this.labelBandTrials = new System.Windows.Forms.Label();
		this.btnClearBandTrials = new System.Windows.Forms.Button();
		this.btnAutoGenBandTrials = new System.Windows.Forms.Button();
		this.dgBandTrials = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
		this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn();
		this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewComboBoxColumn3 = new System.Windows.Forms.DataGridViewComboBoxColumn();
		this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn();
		((System.ComponentModel.ISupportInitialize)this.dgBandTrials).BeginInit();
		base.SuspendLayout();
		this.labelBandTrials.AutoSize = true;
		this.labelBandTrials.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.labelBandTrials.Location = new System.Drawing.Point(26, 10);
		this.labelBandTrials.Name = "labelBandTrials";
		this.labelBandTrials.Size = new System.Drawing.Size(154, 24);
		this.labelBandTrials.TabIndex = 62;
		this.labelBandTrials.Text = "Band Class Trials";
		this.btnClearBandTrials.Location = new System.Drawing.Point(560, 10);
		this.btnClearBandTrials.Name = "btnClearBandTrials";
		this.btnClearBandTrials.Size = new System.Drawing.Size(85, 33);
		this.btnClearBandTrials.TabIndex = 61;
		this.btnClearBandTrials.Text = "Clear";
		this.btnClearBandTrials.UseVisualStyleBackColor = true;
		this.btnAutoGenBandTrials.Enabled = false;
		this.btnAutoGenBandTrials.Location = new System.Drawing.Point(458, 10);
		this.btnAutoGenBandTrials.Name = "btnAutoGenBandTrials";
		this.btnAutoGenBandTrials.Size = new System.Drawing.Size(89, 33);
		this.btnAutoGenBandTrials.TabIndex = 60;
		this.btnAutoGenBandTrials.Text = "AutoGenerate";
		this.btnAutoGenBandTrials.UseVisualStyleBackColor = true;
		this.dgBandTrials.AllowUserToResizeColumns = false;
		this.dgBandTrials.AllowUserToResizeRows = false;
		this.dgBandTrials.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
		dataGridViewCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
		dataGridViewCellStyle.BackColor = System.Drawing.SystemColors.Control;
		dataGridViewCellStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		dataGridViewCellStyle.ForeColor = System.Drawing.SystemColors.WindowText;
		dataGridViewCellStyle.SelectionBackColor = System.Drawing.SystemColors.Highlight;
		dataGridViewCellStyle.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
		dataGridViewCellStyle.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
		this.dgBandTrials.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
		this.dgBandTrials.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgBandTrials.Columns.AddRange(this.dataGridViewTextBoxColumn1, this.dataGridViewTextBoxColumn2, this.dataGridViewComboBoxColumn1, this.dataGridViewComboBoxColumn2, this.dataGridViewTextBoxColumn3, this.dataGridViewComboBoxColumn3, this.dataGridViewComboBoxColumn4);
		dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
		dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
		dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
		dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
		dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
		dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
		this.dgBandTrials.DefaultCellStyle = dataGridViewCellStyle2;
		this.dgBandTrials.Location = new System.Drawing.Point(0, 49);
		this.dgBandTrials.Name = "dgBandTrials";
		dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
		dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
		dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
		dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
		dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
		dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
		this.dgBandTrials.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
		this.dgBandTrials.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
		this.dgBandTrials.Size = new System.Drawing.Size(683, 155);
		this.dgBandTrials.TabIndex = 59;
		this.dataGridViewTextBoxColumn1.Frozen = true;
		this.dataGridViewTextBoxColumn1.HeaderText = "Ref Designator";
		this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
		this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic;
		dataGridViewCellStyle4.BackColor = System.Drawing.Color.Wheat;
		this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle4;
		this.dataGridViewTextBoxColumn2.HeaderText = "Trial1 Value";
		this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
		this.dataGridViewComboBoxColumn1.HeaderText = "Trial1 Units";
		this.dataGridViewComboBoxColumn1.Items.AddRange("pF", "nH");
		this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1";
		this.dataGridViewComboBoxColumn1.Width = 50;
		this.dataGridViewComboBoxColumn2.HeaderText = "Trial1 Topolgy";
		this.dataGridViewComboBoxColumn2.Items.AddRange("SHUNT", "SERIES", "DNI", "SHORT");
		this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2";
		this.dataGridViewComboBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
		this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
		dataGridViewCellStyle5.BackColor = System.Drawing.Color.Wheat;
		this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle5;
		this.dataGridViewTextBoxColumn3.HeaderText = "Trial2 Value";
		this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
		this.dataGridViewComboBoxColumn3.HeaderText = "Trial2 Units";
		this.dataGridViewComboBoxColumn3.Items.AddRange("pF", "nH");
		this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3";
		this.dataGridViewComboBoxColumn3.Width = 50;
		this.dataGridViewComboBoxColumn4.HeaderText = "Trial2 Topology";
		this.dataGridViewComboBoxColumn4.Items.AddRange("SHUNT", "SERIES", "DNI", "SHORT");
		this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4";
		this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
		this.dataGridViewComboBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.Controls.Add(this.labelBandTrials);
		base.Controls.Add(this.btnClearBandTrials);
		base.Controls.Add(this.btnAutoGenBandTrials);
		base.Controls.Add(this.dgBandTrials);
		base.Margin = new System.Windows.Forms.Padding(0);
		base.Name = "TrialsControl";
		base.Size = new System.Drawing.Size(683, 216);
		((System.ComponentModel.ISupportInitialize)this.dgBandTrials).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
