diff --git a/CarManagerV3/Forms/CarDetailsForm.Designer.cs b/CarManagerV3/Forms/CarDetailsForm.Designer.cs index 893a8aa..7e59185 100644 --- a/CarManagerV3/Forms/CarDetailsForm.Designer.cs +++ b/CarManagerV3/Forms/CarDetailsForm.Designer.cs @@ -29,327 +29,328 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarDetailsForm)); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.pbxCarImage = new System.Windows.Forms.PictureBox(); - this.label1 = new System.Windows.Forms.Label(); - this.tbxMake = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.tbxModel = new System.Windows.Forms.TextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.btnSave = new System.Windows.Forms.Button(); - this.btnDelete = new System.Windows.Forms.Button(); - this.lblID = new System.Windows.Forms.Label(); - this.tbxColor = new System.Windows.Forms.TextBox(); - this.nudMileage = new System.Windows.Forms.NumericUpDown(); - this.nudPrice = new System.Windows.Forms.NumericUpDown(); - this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); - this.nudYear = new System.Windows.Forms.NumericUpDown(); - this.lblAge = new System.Windows.Forms.Label(); - this.tbxAge = new System.Windows.Forms.TextBox(); - this.tableLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbxCarImage)).BeginInit(); - this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudMileage)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudPrice)).BeginInit(); - this.tableLayoutPanel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudYear)).BeginInit(); - this.SuspendLayout(); + tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + pbxCarImage = new System.Windows.Forms.PictureBox(); + label1 = new System.Windows.Forms.Label(); + tbxMake = new System.Windows.Forms.TextBox(); + label2 = new System.Windows.Forms.Label(); + tbxModel = new System.Windows.Forms.TextBox(); + label3 = new System.Windows.Forms.Label(); + label4 = new System.Windows.Forms.Label(); + label5 = new System.Windows.Forms.Label(); + label6 = new System.Windows.Forms.Label(); + flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + btnSave = new System.Windows.Forms.Button(); + btnDelete = new System.Windows.Forms.Button(); + lblID = new System.Windows.Forms.Label(); + tbxColor = new System.Windows.Forms.TextBox(); + nudMileage = new System.Windows.Forms.NumericUpDown(); + nudPrice = new System.Windows.Forms.NumericUpDown(); + tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + nudYear = new System.Windows.Forms.NumericUpDown(); + lblAge = new System.Windows.Forms.Label(); + tbxAge = new System.Windows.Forms.TextBox(); + tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)pbxCarImage).BeginInit(); + flowLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)nudMileage).BeginInit(); + ((System.ComponentModel.ISupportInitialize)nudPrice).BeginInit(); + tableLayoutPanel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)nudYear).BeginInit(); + SuspendLayout(); // // tableLayoutPanel1 // - this.tableLayoutPanel1.AutoSize = true; - this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel1.ColumnCount = 2; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.Controls.Add(this.pbxCarImage, 0, 0); - this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1); - this.tableLayoutPanel1.Controls.Add(this.tbxMake, 1, 1); - this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2); - this.tableLayoutPanel1.Controls.Add(this.tbxModel, 1, 2); - this.tableLayoutPanel1.Controls.Add(this.label3, 0, 3); - this.tableLayoutPanel1.Controls.Add(this.label4, 0, 4); - this.tableLayoutPanel1.Controls.Add(this.label5, 0, 5); - this.tableLayoutPanel1.Controls.Add(this.label6, 0, 6); - this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel1, 0, 7); - this.tableLayoutPanel1.Controls.Add(this.tbxColor, 1, 4); - this.tableLayoutPanel1.Controls.Add(this.nudMileage, 1, 5); - this.tableLayoutPanel1.Controls.Add(this.nudPrice, 1, 6); - this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 1, 3); - this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 8; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 200F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(536, 450); - this.tableLayoutPanel1.TabIndex = 0; + tableLayoutPanel1.AutoSize = true; + tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + tableLayoutPanel1.ColumnCount = 2; + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F)); + tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel1.Controls.Add(pbxCarImage, 0, 0); + tableLayoutPanel1.Controls.Add(label1, 0, 1); + tableLayoutPanel1.Controls.Add(tbxMake, 1, 1); + tableLayoutPanel1.Controls.Add(label2, 0, 2); + tableLayoutPanel1.Controls.Add(tbxModel, 1, 2); + tableLayoutPanel1.Controls.Add(label3, 0, 3); + tableLayoutPanel1.Controls.Add(label4, 0, 4); + tableLayoutPanel1.Controls.Add(label5, 0, 5); + tableLayoutPanel1.Controls.Add(label6, 0, 6); + tableLayoutPanel1.Controls.Add(flowLayoutPanel1, 0, 7); + tableLayoutPanel1.Controls.Add(tbxColor, 1, 4); + tableLayoutPanel1.Controls.Add(nudMileage, 1, 5); + tableLayoutPanel1.Controls.Add(nudPrice, 1, 6); + tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 1, 3); + tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 4, 30, 4); + tableLayoutPanel1.Name = "tableLayoutPanel1"; + tableLayoutPanel1.RowCount = 8; + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 250F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 38F)); + tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); + tableLayoutPanel1.Size = new System.Drawing.Size(536, 562); + tableLayoutPanel1.TabIndex = 0; // // pbxCarImage // - this.tableLayoutPanel1.SetColumnSpan(this.pbxCarImage, 2); - this.pbxCarImage.Dock = System.Windows.Forms.DockStyle.Fill; - this.pbxCarImage.Image = ((System.Drawing.Image)(resources.GetObject("pbxCarImage.Image"))); - this.pbxCarImage.Location = new System.Drawing.Point(3, 3); - this.pbxCarImage.Name = "pbxCarImage"; - this.pbxCarImage.Size = new System.Drawing.Size(538, 194); - this.pbxCarImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pbxCarImage.TabIndex = 0; - this.pbxCarImage.TabStop = false; + tableLayoutPanel1.SetColumnSpan(pbxCarImage, 2); + pbxCarImage.Dock = System.Windows.Forms.DockStyle.Fill; + pbxCarImage.Image = (System.Drawing.Image)resources.GetObject("pbxCarImage.Image"); + pbxCarImage.Location = new System.Drawing.Point(3, 4); + pbxCarImage.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + pbxCarImage.Name = "pbxCarImage"; + pbxCarImage.Size = new System.Drawing.Size(530, 242); + pbxCarImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + pbxCarImage.TabIndex = 0; + pbxCarImage.TabStop = false; // // label1 // - this.label1.AutoSize = true; - this.label1.Dock = System.Windows.Forms.DockStyle.Fill; - this.label1.Location = new System.Drawing.Point(3, 200); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(59, 30); - this.label1.TabIndex = 1; - this.label1.Text = "Make:"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label1.AutoSize = true; + label1.Dock = System.Windows.Forms.DockStyle.Fill; + label1.Location = new System.Drawing.Point(3, 250); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(74, 38); + label1.TabIndex = 1; + label1.Text = "Make:"; + label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tbxMake // - this.tbxMake.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbxMake.Location = new System.Drawing.Point(68, 203); - this.tbxMake.Name = "tbxMake"; - this.tbxMake.Size = new System.Drawing.Size(473, 22); - this.tbxMake.TabIndex = 1; - this.tbxMake.TextChanged += new System.EventHandler(this.tbxMake_TextChanged); - this.tbxMake.Leave += new System.EventHandler(this.tbxMake_Leave); + tbxMake.Dock = System.Windows.Forms.DockStyle.Fill; + tbxMake.Location = new System.Drawing.Point(83, 254); + tbxMake.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + tbxMake.Name = "tbxMake"; + tbxMake.Size = new System.Drawing.Size(450, 27); + tbxMake.TabIndex = 1; + tbxMake.TextChanged += tbxMake_TextChanged; + tbxMake.Leave += tbxMake_Leave; // // label2 // - this.label2.AutoSize = true; - this.label2.Dock = System.Windows.Forms.DockStyle.Fill; - this.label2.Location = new System.Drawing.Point(3, 230); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(59, 30); - this.label2.TabIndex = 3; - this.label2.Text = "Model:"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label2.AutoSize = true; + label2.Dock = System.Windows.Forms.DockStyle.Fill; + label2.Location = new System.Drawing.Point(3, 288); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(74, 38); + label2.TabIndex = 3; + label2.Text = "Model:"; + label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tbxModel // - this.tbxModel.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbxModel.Location = new System.Drawing.Point(68, 233); - this.tbxModel.Name = "tbxModel"; - this.tbxModel.Size = new System.Drawing.Size(473, 22); - this.tbxModel.TabIndex = 2; - this.tbxModel.TextChanged += new System.EventHandler(this.tbxModel_TextChanged); - this.tbxModel.Leave += new System.EventHandler(this.tbxModel_Leave); + tbxModel.Dock = System.Windows.Forms.DockStyle.Fill; + tbxModel.Location = new System.Drawing.Point(83, 292); + tbxModel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + tbxModel.Name = "tbxModel"; + tbxModel.Size = new System.Drawing.Size(450, 27); + tbxModel.TabIndex = 2; + tbxModel.TextChanged += tbxModel_TextChanged; + tbxModel.Leave += tbxModel_Leave; // // label3 // - this.label3.AutoSize = true; - this.label3.Dock = System.Windows.Forms.DockStyle.Fill; - this.label3.Location = new System.Drawing.Point(3, 260); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(59, 30); - this.label3.TabIndex = 5; - this.label3.Text = "Year:"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label3.AutoSize = true; + label3.Dock = System.Windows.Forms.DockStyle.Fill; + label3.Location = new System.Drawing.Point(3, 326); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(74, 38); + label3.TabIndex = 5; + label3.Text = "Year:"; + label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label4 // - this.label4.AutoSize = true; - this.label4.Dock = System.Windows.Forms.DockStyle.Fill; - this.label4.Location = new System.Drawing.Point(3, 290); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(59, 30); - this.label4.TabIndex = 6; - this.label4.Text = "Color:"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label4.AutoSize = true; + label4.Dock = System.Windows.Forms.DockStyle.Fill; + label4.Location = new System.Drawing.Point(3, 364); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(74, 38); + label4.TabIndex = 6; + label4.Text = "Color:"; + label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label5 // - this.label5.AutoSize = true; - this.label5.Dock = System.Windows.Forms.DockStyle.Fill; - this.label5.Location = new System.Drawing.Point(3, 320); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(59, 30); - this.label5.TabIndex = 7; - this.label5.Text = "Mileage:"; - this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label5.AutoSize = true; + label5.Dock = System.Windows.Forms.DockStyle.Fill; + label5.Location = new System.Drawing.Point(3, 402); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(74, 38); + label5.TabIndex = 7; + label5.Text = "Mileage:"; + label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label6 // - this.label6.AutoSize = true; - this.label6.Dock = System.Windows.Forms.DockStyle.Fill; - this.label6.Location = new System.Drawing.Point(3, 350); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(59, 30); - this.label6.TabIndex = 8; - this.label6.Text = "Price:"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + label6.AutoSize = true; + label6.Dock = System.Windows.Forms.DockStyle.Fill; + label6.Location = new System.Drawing.Point(3, 440); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(74, 38); + label6.TabIndex = 8; + label6.Text = "Price:"; + label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // flowLayoutPanel1 // - this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel1, 2); - this.flowLayoutPanel1.Controls.Add(this.btnSave); - this.flowLayoutPanel1.Controls.Add(this.btnDelete); - this.flowLayoutPanel1.Controls.Add(this.lblID); - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; - this.flowLayoutPanel1.Location = new System.Drawing.Point(3, 383); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Padding = new System.Windows.Forms.Padding(5); - this.flowLayoutPanel1.Size = new System.Drawing.Size(538, 64); - this.flowLayoutPanel1.TabIndex = 9; + tableLayoutPanel1.SetColumnSpan(flowLayoutPanel1, 2); + flowLayoutPanel1.Controls.Add(btnSave); + flowLayoutPanel1.Controls.Add(btnDelete); + flowLayoutPanel1.Controls.Add(lblID); + flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft; + flowLayoutPanel1.Location = new System.Drawing.Point(3, 482); + flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Padding = new System.Windows.Forms.Padding(5, 6, 5, 6); + flowLayoutPanel1.Size = new System.Drawing.Size(530, 76); + flowLayoutPanel1.TabIndex = 9; // // btnSave // - this.btnSave.Location = new System.Drawing.Point(450, 8); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(75, 23); - this.btnSave.TabIndex = 7; - this.btnSave.Text = "Save"; - this.btnSave.UseVisualStyleBackColor = true; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + btnSave.Location = new System.Drawing.Point(442, 10); + btnSave.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + btnSave.Name = "btnSave"; + btnSave.Size = new System.Drawing.Size(75, 29); + btnSave.TabIndex = 7; + btnSave.Text = "Save"; + btnSave.UseVisualStyleBackColor = true; + btnSave.Click += btnSave_Click; // // btnDelete // - this.btnDelete.Location = new System.Drawing.Point(369, 8); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(75, 23); - this.btnDelete.TabIndex = 8; - this.btnDelete.Text = "Delete"; - this.btnDelete.UseVisualStyleBackColor = true; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); + btnDelete.Location = new System.Drawing.Point(361, 10); + btnDelete.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + btnDelete.Name = "btnDelete"; + btnDelete.Size = new System.Drawing.Size(75, 29); + btnDelete.TabIndex = 8; + btnDelete.Text = "Delete"; + btnDelete.UseVisualStyleBackColor = true; + btnDelete.Click += btnDelete_Click; // // lblID // - this.lblID.AutoSize = true; - this.lblID.Location = new System.Drawing.Point(343, 5); - this.lblID.Name = "lblID"; - this.lblID.Size = new System.Drawing.Size(20, 16); - this.lblID.TabIndex = 2; - this.lblID.Text = "ID"; + lblID.AutoSize = true; + lblID.Location = new System.Drawing.Point(331, 6); + lblID.Name = "lblID"; + lblID.Size = new System.Drawing.Size(24, 20); + lblID.TabIndex = 2; + lblID.Text = "ID"; // // tbxColor // - this.tbxColor.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbxColor.Location = new System.Drawing.Point(68, 293); - this.tbxColor.Name = "tbxColor"; - this.tbxColor.Size = new System.Drawing.Size(473, 22); - this.tbxColor.TabIndex = 4; - this.tbxColor.TextChanged += new System.EventHandler(this.tbxColor_TextChanged); - this.tbxColor.Leave += new System.EventHandler(this.tbxColor_Leave); + tbxColor.Dock = System.Windows.Forms.DockStyle.Fill; + tbxColor.Location = new System.Drawing.Point(83, 368); + tbxColor.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + tbxColor.Name = "tbxColor"; + tbxColor.Size = new System.Drawing.Size(450, 27); + tbxColor.TabIndex = 4; + tbxColor.TextChanged += tbxColor_TextChanged; + tbxColor.Leave += tbxColor_Leave; // // nudMileage // - this.nudMileage.Location = new System.Drawing.Point(68, 323); - this.nudMileage.Maximum = new decimal(new int[] { - 999999, - 0, - 0, - 0}); - this.nudMileage.Name = "nudMileage"; - this.nudMileage.Size = new System.Drawing.Size(120, 22); - this.nudMileage.TabIndex = 5; - this.nudMileage.ThousandsSeparator = true; - this.nudMileage.ValueChanged += new System.EventHandler(this.nudMileage_ValueChanged); + nudMileage.Location = new System.Drawing.Point(83, 406); + nudMileage.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + nudMileage.Maximum = new decimal(new int[] { 999999, 0, 0, 0 }); + nudMileage.Name = "nudMileage"; + nudMileage.Size = new System.Drawing.Size(120, 27); + nudMileage.TabIndex = 5; + nudMileage.ThousandsSeparator = true; + nudMileage.ValueChanged += nudMileage_ValueChanged; // // nudPrice // - this.nudPrice.DecimalPlaces = 2; - this.nudPrice.Location = new System.Drawing.Point(68, 353); - this.nudPrice.Maximum = new decimal(new int[] { - 999999, - 0, - 0, - 0}); - this.nudPrice.Name = "nudPrice"; - this.nudPrice.Size = new System.Drawing.Size(120, 22); - this.nudPrice.TabIndex = 6; - this.nudPrice.ThousandsSeparator = true; - this.nudPrice.ValueChanged += new System.EventHandler(this.nudPrice_ValueChanged); + nudPrice.DecimalPlaces = 2; + nudPrice.Location = new System.Drawing.Point(83, 444); + nudPrice.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + nudPrice.Maximum = new decimal(new int[] { 999999, 0, 0, 0 }); + nudPrice.Name = "nudPrice"; + nudPrice.Size = new System.Drawing.Size(120, 27); + nudPrice.TabIndex = 6; + nudPrice.ThousandsSeparator = true; + nudPrice.ValueChanged += nudPrice_ValueChanged; // // tableLayoutPanel2 // - this.tableLayoutPanel2.ColumnCount = 3; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanel2.Controls.Add(this.nudYear, 0, 0); - this.tableLayoutPanel2.Controls.Add(this.lblAge, 1, 0); - this.tableLayoutPanel2.Controls.Add(this.tbxAge, 2, 0); - this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel2.Location = new System.Drawing.Point(68, 263); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 1; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(473, 24); - this.tableLayoutPanel2.TabIndex = 10; + tableLayoutPanel2.ColumnCount = 3; + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + tableLayoutPanel2.Controls.Add(nudYear, 0, 0); + tableLayoutPanel2.Controls.Add(lblAge, 1, 0); + tableLayoutPanel2.Controls.Add(tbxAge, 2, 0); + tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + tableLayoutPanel2.Location = new System.Drawing.Point(83, 330); + tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + tableLayoutPanel2.Name = "tableLayoutPanel2"; + tableLayoutPanel2.RowCount = 1; + tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + tableLayoutPanel2.Size = new System.Drawing.Size(450, 30); + tableLayoutPanel2.TabIndex = 10; // // nudYear // - this.nudYear.Location = new System.Drawing.Point(3, 3); - this.nudYear.Maximum = new decimal(new int[] { - 3000, - 0, - 0, - 0}); - this.nudYear.Name = "nudYear"; - this.nudYear.Size = new System.Drawing.Size(120, 22); - this.nudYear.TabIndex = 3; - this.nudYear.ValueChanged += new System.EventHandler(this.nudYear_ValueChanged); + nudYear.Location = new System.Drawing.Point(3, 4); + nudYear.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + nudYear.Maximum = new decimal(new int[] { 3000, 0, 0, 0 }); + nudYear.Name = "nudYear"; + nudYear.Size = new System.Drawing.Size(120, 27); + nudYear.TabIndex = 3; + nudYear.ValueChanged += nudYear_ValueChanged; // // lblAge // - this.lblAge.AutoSize = true; - this.lblAge.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblAge.Location = new System.Drawing.Point(160, 0); - this.lblAge.Name = "lblAge"; - this.lblAge.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.lblAge.Size = new System.Drawing.Size(151, 24); - this.lblAge.TabIndex = 4; - this.lblAge.Text = "Age"; - this.lblAge.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + lblAge.AutoSize = true; + lblAge.Dock = System.Windows.Forms.DockStyle.Fill; + lblAge.Location = new System.Drawing.Point(153, 0); + lblAge.Name = "lblAge"; + lblAge.RightToLeft = System.Windows.Forms.RightToLeft.No; + lblAge.Size = new System.Drawing.Size(144, 30); + lblAge.TabIndex = 4; + lblAge.Text = "Age"; + lblAge.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // tbxAge // - this.tbxAge.Enabled = false; - this.tbxAge.Location = new System.Drawing.Point(317, 3); - this.tbxAge.Name = "tbxAge"; - this.tbxAge.ReadOnly = true; - this.tbxAge.Size = new System.Drawing.Size(100, 22); - this.tbxAge.TabIndex = 5; + tbxAge.Dock = System.Windows.Forms.DockStyle.Fill; + tbxAge.Enabled = false; + tbxAge.Location = new System.Drawing.Point(303, 4); + tbxAge.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + tbxAge.Name = "tbxAge"; + tbxAge.ReadOnly = true; + tbxAge.Size = new System.Drawing.Size(144, 27); + tbxAge.TabIndex = 5; // // CarDetailsForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(536, 450); - this.Controls.Add(this.tableLayoutPanel1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.Name = "CarDetailsForm"; - this.Text = "Details"; - this.tableLayoutPanel1.ResumeLayout(false); - this.tableLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pbxCarImage)).EndInit(); - this.flowLayoutPanel1.ResumeLayout(false); - this.flowLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudMileage)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudPrice)).EndInit(); - this.tableLayoutPanel2.ResumeLayout(false); - this.tableLayoutPanel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudYear)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(536, 562); + Controls.Add(tableLayoutPanel1); + FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + MaximizeBox = false; + Name = "CarDetailsForm"; + Text = "Details"; + tableLayoutPanel1.ResumeLayout(false); + tableLayoutPanel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)pbxCarImage).EndInit(); + flowLayoutPanel1.ResumeLayout(false); + flowLayoutPanel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)nudMileage).EndInit(); + ((System.ComponentModel.ISupportInitialize)nudPrice).EndInit(); + tableLayoutPanel2.ResumeLayout(false); + tableLayoutPanel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)nudYear).EndInit(); + ResumeLayout(false); + PerformLayout(); } diff --git a/CarManagerV3/Forms/CarDetailsForm.resx b/CarManagerV3/Forms/CarDetailsForm.resx index 13ef56a..1a82829 100644 --- a/CarManagerV3/Forms/CarDetailsForm.resx +++ b/CarManagerV3/Forms/CarDetailsForm.resx @@ -1,17 +1,17 @@  -