Correction of DPI

This commit is contained in:
Aurélie Delhaie
2022-05-25 11:58:09 +02:00
parent 5f92fcafa0
commit 56e94d8dfe
27 changed files with 517 additions and 441 deletions

View File

@@ -54,9 +54,10 @@
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.label1.ForeColor = System.Drawing.SystemColors.Highlight;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Location = new System.Drawing.Point(8, 5);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(212, 48);
this.label1.Size = new System.Drawing.Size(143, 32);
this.label1.TabIndex = 0;
this.label1.Text = "Add a game";
//
@@ -71,9 +72,11 @@
this.groupBox1.Controls.Add(this.pathButton);
this.groupBox1.Controls.Add(this.LocationBox);
this.groupBox1.Controls.Add(this.NameBox);
this.groupBox1.Location = new System.Drawing.Point(12, 80);
this.groupBox1.Location = new System.Drawing.Point(8, 48);
this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(634, 417);
this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
this.groupBox1.Size = new System.Drawing.Size(444, 329);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Game information";
@@ -82,9 +85,10 @@
//
this.NameWarningLabel.AutoSize = true;
this.NameWarningLabel.ForeColor = System.Drawing.Color.Coral;
this.NameWarningLabel.Location = new System.Drawing.Point(15, 113);
this.NameWarningLabel.Location = new System.Drawing.Point(10, 72);
this.NameWarningLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.NameWarningLabel.Name = "NameWarningLabel";
this.NameWarningLabel.Size = new System.Drawing.Size(421, 25);
this.NameWarningLabel.Size = new System.Drawing.Size(280, 15);
this.NameWarningLabel.TabIndex = 5;
this.NameWarningLabel.Text = "There is already a game with this name in the library";
this.NameWarningLabel.Visible = false;
@@ -92,27 +96,30 @@
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(15, 161);
this.label3.Location = new System.Drawing.Point(10, 97);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(169, 25);
this.label3.Size = new System.Drawing.Size(111, 15);
this.label3.TabIndex = 4;
this.label3.Text = "Save folder location";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(15, 51);
this.label2.Location = new System.Drawing.Point(10, 31);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 25);
this.label2.Size = new System.Drawing.Size(39, 15);
this.label2.TabIndex = 3;
this.label2.Text = "Name";
//
// pathButton
//
this.pathButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pathButton.Location = new System.Drawing.Point(571, 186);
this.pathButton.Location = new System.Drawing.Point(400, 112);
this.pathButton.Margin = new System.Windows.Forms.Padding(2);
this.pathButton.Name = "pathButton";
this.pathButton.Size = new System.Drawing.Size(47, 34);
this.pathButton.Size = new System.Drawing.Size(33, 24);
this.pathButton.TabIndex = 2;
this.pathButton.Text = "...";
this.pathButton.UseVisualStyleBackColor = true;
@@ -122,19 +129,21 @@
//
this.LocationBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LocationBox.Location = new System.Drawing.Point(15, 189);
this.LocationBox.Location = new System.Drawing.Point(10, 113);
this.LocationBox.Margin = new System.Windows.Forms.Padding(2);
this.LocationBox.Name = "LocationBox";
this.LocationBox.ReadOnly = true;
this.LocationBox.Size = new System.Drawing.Size(550, 31);
this.LocationBox.Size = new System.Drawing.Size(386, 23);
this.LocationBox.TabIndex = 1;
//
// NameBox
//
this.NameBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.NameBox.Location = new System.Drawing.Point(15, 79);
this.NameBox.Location = new System.Drawing.Point(10, 47);
this.NameBox.Margin = new System.Windows.Forms.Padding(2);
this.NameBox.Name = "NameBox";
this.NameBox.Size = new System.Drawing.Size(603, 31);
this.NameBox.Size = new System.Drawing.Size(423, 23);
this.NameBox.TabIndex = 0;
this.NameBox.TextChanged += new System.EventHandler(this.NameBox_TextChanged);
//
@@ -144,9 +153,11 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.NoCoverLabel);
this.groupBox2.Controls.Add(this.CoverPicture);
this.groupBox2.Location = new System.Drawing.Point(652, 80);
this.groupBox2.Location = new System.Drawing.Point(456, 48);
this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(403, 417);
this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
this.groupBox2.Size = new System.Drawing.Size(282, 329);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Cover";
@@ -156,9 +167,10 @@
this.NoCoverLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.NoCoverLabel.Location = new System.Drawing.Point(54, 56);
this.NoCoverLabel.Location = new System.Drawing.Point(38, 34);
this.NoCoverLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.NoCoverLabel.Name = "NoCoverLabel";
this.NoCoverLabel.Size = new System.Drawing.Size(311, 305);
this.NoCoverLabel.Size = new System.Drawing.Size(218, 262);
this.NoCoverLabel.TabIndex = 0;
this.NoCoverLabel.Text = "...";
this.NoCoverLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -168,9 +180,10 @@
this.CoverPicture.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.CoverPicture.Location = new System.Drawing.Point(54, 56);
this.CoverPicture.Location = new System.Drawing.Point(38, 34);
this.CoverPicture.Margin = new System.Windows.Forms.Padding(2);
this.CoverPicture.Name = "CoverPicture";
this.CoverPicture.Size = new System.Drawing.Size(311, 305);
this.CoverPicture.Size = new System.Drawing.Size(218, 262);
this.CoverPicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.CoverPicture.TabIndex = 1;
this.CoverPicture.TabStop = false;
@@ -179,9 +192,10 @@
// AddButton
//
this.AddButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.AddButton.Location = new System.Drawing.Point(943, 508);
this.AddButton.Location = new System.Drawing.Point(660, 384);
this.AddButton.Margin = new System.Windows.Forms.Padding(2);
this.AddButton.Name = "AddButton";
this.AddButton.Size = new System.Drawing.Size(112, 34);
this.AddButton.Size = new System.Drawing.Size(78, 27);
this.AddButton.TabIndex = 3;
this.AddButton.Text = "Add";
this.AddButton.UseVisualStyleBackColor = true;
@@ -196,27 +210,29 @@
//
this.PathErrorLabel.AutoSize = true;
this.PathErrorLabel.ForeColor = System.Drawing.Color.IndianRed;
this.PathErrorLabel.Location = new System.Drawing.Point(483, 513);
this.PathErrorLabel.Location = new System.Drawing.Point(355, 390);
this.PathErrorLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.PathErrorLabel.Name = "PathErrorLabel";
this.PathErrorLabel.Size = new System.Drawing.Size(454, 25);
this.PathErrorLabel.Size = new System.Drawing.Size(301, 15);
this.PathErrorLabel.TabIndex = 4;
this.PathErrorLabel.Text = "There is already a game following this path in the library";
this.PathErrorLabel.Visible = false;
//
// AddGameForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 25F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.BackColor = System.Drawing.SystemColors.Window;
this.ClientSize = new System.Drawing.Size(1067, 554);
this.ClientSize = new System.Drawing.Size(751, 422);
this.Controls.Add(this.PathErrorLabel);
this.Controls.Add(this.AddButton);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2);
this.MaximizeBox = false;
this.MinimumSize = new System.Drawing.Size(1089, 610);
this.MinimumSize = new System.Drawing.Size(767, 382);
this.Name = "AddGameForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;