From a666f346345b55f0a9eacb3be66e152da76722d6 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Sun, 25 Jul 2021 23:51:13 -0500 Subject: [PATCH] Rename form titles, Fix allCheckBox --- CreamInstaller/CreamInstaller.csproj | 1 + CreamInstaller/InstallForm.Designer.cs | 2 +- CreamInstaller/InstallForm.cs | 1 + CreamInstaller/Program.cs | 5 ++--- CreamInstaller/SelectForm.Designer.cs | 9 +++++---- CreamInstaller/SelectForm.cs | 1 + 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index 1a7db2b..a224933 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -6,6 +6,7 @@ true ini.ico true + 1.0.1 diff --git a/CreamInstaller/InstallForm.Designer.cs b/CreamInstaller/InstallForm.Designer.cs index 4c6f8b4..2b9c8f4 100644 --- a/CreamInstaller/InstallForm.Designer.cs +++ b/CreamInstaller/InstallForm.Designer.cs @@ -128,7 +128,7 @@ namespace CreamInstaller this.MinimumSize = new System.Drawing.Size(500, 300); this.Name = "InstallForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "CreamAPI Downloader & Installer"; + this.Text = "InstallForm"; this.TopMost = true; this.Load += new System.EventHandler(this.OnLoad); this.ResumeLayout(false); diff --git a/CreamInstaller/InstallForm.cs b/CreamInstaller/InstallForm.cs index dd53772..35b369a 100644 --- a/CreamInstaller/InstallForm.cs +++ b/CreamInstaller/InstallForm.cs @@ -15,6 +15,7 @@ namespace CreamInstaller { InitializeComponent(); Program.InstallForm = this; + Text = Program.ApplicationName; } public void UpdateProgress(int progress) diff --git a/CreamInstaller/Program.cs b/CreamInstaller/Program.cs index c3dfaa5..3641b0e 100644 --- a/CreamInstaller/Program.cs +++ b/CreamInstaller/Program.cs @@ -11,9 +11,8 @@ namespace CreamInstaller { public static class Program { - /// - /// The main entry point for the application. - /// + public static string ApplicationName = "CreamInstaller v" + Application.ProductVersion + ": CreamAPI Downloader & Installer"; + [STAThread] static void Main() { diff --git a/CreamInstaller/SelectForm.Designer.cs b/CreamInstaller/SelectForm.Designer.cs index 53fa1be..697033a 100644 --- a/CreamInstaller/SelectForm.Designer.cs +++ b/CreamInstaller/SelectForm.Designer.cs @@ -78,6 +78,7 @@ namespace CreamInstaller this.groupBox1.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.groupBox1.Controls.Add(this.allCheckBox); this.groupBox1.Controls.Add(this.flowLayoutPanel1); this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Name = "groupBox1"; @@ -88,11 +89,12 @@ namespace CreamInstaller // // allCheckBox // + this.allCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.allCheckBox.AutoSize = true; this.allCheckBox.Checked = true; this.allCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.allCheckBox.Enabled = false; - this.allCheckBox.Location = new System.Drawing.Point(276, 257); + this.allCheckBox.Location = new System.Drawing.Point(414, 0); this.allCheckBox.Name = "allCheckBox"; this.allCheckBox.Size = new System.Drawing.Size(40, 19); this.allCheckBox.TabIndex = 0; @@ -135,7 +137,6 @@ namespace CreamInstaller this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.cancelButton; this.ClientSize = new System.Drawing.Size(484, 289); - this.Controls.Add(this.allCheckBox); this.Controls.Add(this.label2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.progressBar1); @@ -149,12 +150,12 @@ namespace CreamInstaller this.MinimumSize = new System.Drawing.Size(500, 328); this.Name = "SelectForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "CreamAPI Downloader & Installer"; + this.Text = "SelectForm"; this.TopMost = true; this.Load += new System.EventHandler(this.OnLoad); this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); this.ResumeLayout(false); - this.PerformLayout(); } diff --git a/CreamInstaller/SelectForm.cs b/CreamInstaller/SelectForm.cs index e74d034..7856d43 100644 --- a/CreamInstaller/SelectForm.cs +++ b/CreamInstaller/SelectForm.cs @@ -17,6 +17,7 @@ namespace CreamInstaller { InitializeComponent(); Program.SelectForm = this; + Text = Program.ApplicationName; } private List gameLibraryDirectories;