Skip to content

Commit

Permalink
add version at form text
Browse files Browse the repository at this point in the history
  • Loading branch information
cw1997 committed Jun 25, 2020
1 parent e1ecf74 commit bc35477
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions dell_fans_controller/dell_fans_controller/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -68,6 +70,7 @@ public frmMain()
{
InitializeComponent();


if (File.Exists(configFilePath))
{
string ip = IniHelper.Read(defaultConfigSection, "ip", defaultIp, configFilePath);
Expand Down Expand Up @@ -194,5 +197,11 @@ private void TxtPassword_LostFocus(object sender, EventArgs e)
{
saveConfig();
}

private void frmMain_Load(object sender, EventArgs e)
{

this.Text += " " + version;
}
}
}

0 comments on commit bc35477

Please sign in to comment.