mirror of
https://github.com/netfun2000/dell_fans_controller.git
synced 2026-10-14 21:43:30 +08:00
add version at form text
This commit is contained in:
@@ -224,7 +224,7 @@
|
||||
//
|
||||
this.lnkMyWebsite.AutoSize = true;
|
||||
this.lnkMyWebsite.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline;
|
||||
this.lnkMyWebsite.Location = new System.Drawing.Point(344, 640);
|
||||
this.lnkMyWebsite.Location = new System.Drawing.Point(399, 640);
|
||||
this.lnkMyWebsite.Name = "lnkMyWebsite";
|
||||
this.lnkMyWebsite.Size = new System.Drawing.Size(113, 12);
|
||||
this.lnkMyWebsite.TabIndex = 5;
|
||||
@@ -235,11 +235,11 @@
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(481, 640);
|
||||
this.label2.Location = new System.Drawing.Point(523, 640);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(131, 12);
|
||||
this.label2.Size = new System.Drawing.Size(89, 12);
|
||||
this.label2.TabIndex = 6;
|
||||
this.label2.Text = "Code By cw1997 V1.0.0";
|
||||
this.label2.Text = "Code By cw1997";
|
||||
//
|
||||
// lstViewSensor
|
||||
//
|
||||
@@ -370,6 +370,7 @@
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "frmMain";
|
||||
this.Text = "Dell Fans Speed Controller";
|
||||
this.Load += new System.EventHandler(this.frmMain_Load);
|
||||
this.grpMain.ResumeLayout(false);
|
||||
this.grpMain.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.trkBarSpeed)).EndInit();
|
||||
|
||||
@@ -12,6 +12,8 @@ namespace dell_fans_controller
|
||||
{
|
||||
public partial class frmMain : Form
|
||||
{
|
||||
private static string version = "v1.0.0";
|
||||
|
||||
private static string currentPath = Application.StartupPath; // System.Environment.CurrentDirectory;
|
||||
private static string configFileName = "\\config.ini";
|
||||
private static string explorer = "explorer";
|
||||
@@ -68,6 +70,7 @@ namespace dell_fans_controller
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
if (File.Exists(configFilePath))
|
||||
{
|
||||
string ip = IniHelper.Read(defaultConfigSection, "ip", defaultIp, configFilePath);
|
||||
@@ -194,5 +197,11 @@ namespace dell_fans_controller
|
||||
{
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
private void frmMain_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.Text += " " + version;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user