Rename form titles, Fix allCheckBox

This commit is contained in:
pointfeev 2021-07-25 23:51:13 -05:00
parent 7d79a9e15d
commit a666f34634
6 changed files with 11 additions and 8 deletions

View file

@ -6,6 +6,7 @@
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>ini.ico</ApplicationIcon> <ApplicationIcon>ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>1.0.1</Version>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View file

@ -128,7 +128,7 @@ namespace CreamInstaller
this.MinimumSize = new System.Drawing.Size(500, 300); this.MinimumSize = new System.Drawing.Size(500, 300);
this.Name = "InstallForm"; this.Name = "InstallForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "CreamAPI Downloader & Installer"; this.Text = "InstallForm";
this.TopMost = true; this.TopMost = true;
this.Load += new System.EventHandler(this.OnLoad); this.Load += new System.EventHandler(this.OnLoad);
this.ResumeLayout(false); this.ResumeLayout(false);

View file

@ -15,6 +15,7 @@ namespace CreamInstaller
{ {
InitializeComponent(); InitializeComponent();
Program.InstallForm = this; Program.InstallForm = this;
Text = Program.ApplicationName;
} }
public void UpdateProgress(int progress) public void UpdateProgress(int progress)

View file

@ -11,9 +11,8 @@ namespace CreamInstaller
{ {
public static class Program public static class Program
{ {
/// <summary> public static string ApplicationName = "CreamInstaller v" + Application.ProductVersion + ": CreamAPI Downloader & Installer";
/// The main entry point for the application.
/// </summary>
[STAThread] [STAThread]
static void Main() static void Main()
{ {

View file

@ -78,6 +78,7 @@ namespace CreamInstaller
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 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.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.allCheckBox);
this.groupBox1.Controls.Add(this.flowLayoutPanel1); this.groupBox1.Controls.Add(this.flowLayoutPanel1);
this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
@ -88,11 +89,12 @@ namespace CreamInstaller
// //
// allCheckBox // allCheckBox
// //
this.allCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.allCheckBox.AutoSize = true; this.allCheckBox.AutoSize = true;
this.allCheckBox.Checked = true; this.allCheckBox.Checked = true;
this.allCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; this.allCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.allCheckBox.Enabled = false; 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.Name = "allCheckBox";
this.allCheckBox.Size = new System.Drawing.Size(40, 19); this.allCheckBox.Size = new System.Drawing.Size(40, 19);
this.allCheckBox.TabIndex = 0; this.allCheckBox.TabIndex = 0;
@ -135,7 +137,6 @@ namespace CreamInstaller
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelButton; this.CancelButton = this.cancelButton;
this.ClientSize = new System.Drawing.Size(484, 289); this.ClientSize = new System.Drawing.Size(484, 289);
this.Controls.Add(this.allCheckBox);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.progressBar1); this.Controls.Add(this.progressBar1);
@ -149,12 +150,12 @@ namespace CreamInstaller
this.MinimumSize = new System.Drawing.Size(500, 328); this.MinimumSize = new System.Drawing.Size(500, 328);
this.Name = "SelectForm"; this.Name = "SelectForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "CreamAPI Downloader & Installer"; this.Text = "SelectForm";
this.TopMost = true; this.TopMost = true;
this.Load += new System.EventHandler(this.OnLoad); this.Load += new System.EventHandler(this.OnLoad);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }

View file

@ -17,6 +17,7 @@ namespace CreamInstaller
{ {
InitializeComponent(); InitializeComponent();
Program.SelectForm = this; Program.SelectForm = this;
Text = Program.ApplicationName;
} }
private List<string> gameLibraryDirectories; private List<string> gameLibraryDirectories;