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

namespace ClientApp
{
    /// <summary>
    /// Summary description for UnitPriceForm.
    /// </summary>
    public class UnitPriceForm : System.Windows.Forms.Form
    {
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.Button button3;
        internal System.Windows.Forms.NumericUpDown numericStored;
        internal System.Windows.Forms.NumericUpDown numericNew;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.Container components = null;

        public UnitPriceForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.button3 = new System.Windows.Forms.Button();
            this.numericStored = new System.Windows.Forms.NumericUpDown();
            this.numericNew = new System.Windows.Forms.NumericUpDown();
            ((System.ComponentModel.ISupportInitialize)(this.numericStored)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericNew)).BeginInit();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(8, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(280, 48);
            this.label1.TabIndex = 0;
            this.label1.Text = "The UnitPrice value was updated by another user. Choose the value you want to sen" +
                "d to the database:";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(8, 72);
            this.label2.Name = "label2";
            this.label2.TabIndex = 2;
            this.label2.Text = "Stored value:";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(8, 112);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(176, 23);
            this.label3.TabIndex = 3;
            this.label3.Text = "Current value in the database:";
            // 
            // button1
            // 
            this.button1.DialogResult = System.Windows.Forms.DialogResult.Retry;
            this.button1.Location = new System.Drawing.Point(8, 168);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(328, 23);
            this.button1.TabIndex = 5;
            this.button1.Text = "Update";
            // 
            // button2
            // 
            this.button2.DialogResult = System.Windows.Forms.DialogResult.Ignore;
            this.button2.Location = new System.Drawing.Point(8, 200);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(328, 23);
            this.button2.TabIndex = 6;
            this.button2.Text = "Update without changing UnitPrice";
            // 
            // button3
            // 
            this.button3.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.button3.Location = new System.Drawing.Point(8, 232);
            this.button3.Name = "button3";
            this.button3.Size = new System.Drawing.Size(328, 23);
            this.button3.TabIndex = 7;
            this.button3.Text = "Cancel update";
            // 
            // numericStored
            // 
            this.numericStored.DecimalPlaces = 2;
            this.numericStored.Enabled = false;
            this.numericStored.Location = new System.Drawing.Point(200, 72);
            this.numericStored.Name = "numericStored";
            this.numericStored.ReadOnly = true;
            this.numericStored.TabIndex = 8;
            // 
            // numericNew
            // 
            this.numericNew.Location = new System.Drawing.Point(200, 112);
            this.numericNew.Name = "numericNew";
            this.numericNew.TabIndex = 9;
            // 
            // UnitPriceForm
            // 
            this.AcceptButton = this.button1;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(344, 261);
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                          this.numericNew,
                                                                          this.numericStored,
                                                                          this.button3,
                                                                          this.button2,
                                                                          this.button1,
                                                                          this.label3,
                                                                          this.label2,
                                                                          this.label1});
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "UnitPriceForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Concurrency";
            ((System.ComponentModel.ISupportInitialize)(this.numericStored)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.numericNew)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion
    }
}
