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

namespace QDART_MFG_CfgEditor;

public class MsgForm : Form
{
	private IContainer components;

	private Label lb1;

	private Label lbWarn;

	private ErrorProvider errorProvider1;

	private Label lb3;

	private Label lb2;

	private Button button1;

	public MsgForm(LanguageDetails Lan)
	{
		InitializeComponent();
		UpdateLanguage(Lan);
	}

	private void UpdateLanguage(LanguageDetails Lan)
	{
		Text = Lan.GetData(126);
		lb1.Text = Lan.GetData(201);
		lb2.Text = Lan.GetData(127);
		lbWarn.Text = Lan.GetData(128);
		lb3.Text = Lan.GetData(129);
	}

	private void MsgForm_Load(object sender, EventArgs e)
	{
		errorProvider1.SetError(lbWarn, "Find me and enter value as suggested");
	}

	private void button1_Click(object sender, EventArgs e)
	{
		Close();
	}

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

	private void InitializeComponent()
	{
		this.components = new System.ComponentModel.Container();
		this.lb1 = new System.Windows.Forms.Label();
		this.lbWarn = new System.Windows.Forms.Label();
		this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
		this.lb3 = new System.Windows.Forms.Label();
		this.lb2 = new System.Windows.Forms.Label();
		this.button1 = new System.Windows.Forms.Button();
		((System.ComponentModel.ISupportInitialize)this.errorProvider1).BeginInit();
		base.SuspendLayout();
		this.lb1.AutoSize = true;
		this.lb1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.lb1.Location = new System.Drawing.Point(8, 9);
		this.lb1.Name = "lb1";
		this.lb1.Size = new System.Drawing.Size(111, 20);
		this.lb1.TabIndex = 0;
		this.lb1.Text = "Failed to save!";
		this.lbWarn.AutoSize = true;
		this.lbWarn.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.lbWarn.Location = new System.Drawing.Point(35, 69);
		this.lbWarn.Name = "lbWarn";
		this.lbWarn.Size = new System.Drawing.Size(118, 20);
		this.lbWarn.TabIndex = 1;
		this.lbWarn.Text = "highlighted with";
		this.errorProvider1.ContainerControl = this;
		this.lb3.AutoSize = true;
		this.lb3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.lb3.Location = new System.Drawing.Point(168, 69);
		this.lb3.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
		this.lb3.Name = "lb3";
		this.lb3.Size = new System.Drawing.Size(135, 20);
		this.lb3.TabIndex = 2;
		this.lb3.Text = "and try to re-save.";
		this.lb2.AutoSize = true;
		this.lb2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.lb2.Location = new System.Drawing.Point(35, 39);
		this.lb2.Name = "lb2";
		this.lb2.Size = new System.Drawing.Size(216, 20);
		this.lb2.TabIndex = 3;
		this.lb2.Text = "Please enter values for items ";
		this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
		this.button1.Location = new System.Drawing.Point(118, 113);
		this.button1.Name = "button1";
		this.button1.Size = new System.Drawing.Size(80, 37);
		this.button1.TabIndex = 4;
		this.button1.Text = "OK";
		this.button1.UseVisualStyleBackColor = true;
		this.button1.Click += new System.EventHandler(button1_Click);
		base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(309, 165);
		base.Controls.Add(this.button1);
		base.Controls.Add(this.lb2);
		base.Controls.Add(this.lb3);
		base.Controls.Add(this.lbWarn);
		base.Controls.Add(this.lb1);
		base.MaximizeBox = false;
		base.MinimizeBox = false;
		base.Name = "MsgForm";
		base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
		this.Text = "Warning";
		base.Load += new System.EventHandler(MsgForm_Load);
		((System.ComponentModel.ISupportInitialize)this.errorProvider1).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
