Skip to content

Commit 00e7e84

Browse files
committed
Incremented version number and updated screenshot
1 parent 5b8d24a commit 00e7e84

4 files changed

Lines changed: 20 additions & 18 deletions

File tree

screenshot.png

-30.4 KB
Loading

src/MainForm.Designer.cs

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/MainForm.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Windows.Forms;
1010
using System.Globalization;
1111
using System.IO;
12+
using System.Reflection;
1213

1314
namespace PiBootstrapper
1415
{
@@ -79,10 +80,10 @@ private void ConfigureImage(string bootDrive, string networkConfig, bool enableS
7980
if (writeConfig)
8081
{
8182
var regionInfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);
82-
string country = regionInfo.TwoLetterISORegionName;
83+
string countryCode = regionInfo.TwoLetterISORegionName;
8384

8485
string configText = "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\n"
85-
+ "update_config=1\ncountry=" + country + "\n\n" + networkConfig + "\n";
86+
+ "update_config=1\ncountry=" + countryCode + "\n\n" + networkConfig + "\n";
8687
File.WriteAllText(wpaSupplicantConf, configText);
8788
}
8889

@@ -172,10 +173,11 @@ private void formControl_Modified(object sender, EventArgs e)
172173

173174
private void MainForm_Load(object sender, EventArgs e)
174175
{
175-
UpdateDriveList();
176-
176+
string appVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
177+
versionLabel.Text += " " + appVersion.TrimEnd('.', '0');
177178
typeComboBox.SelectedIndex = 0;
178179

180+
UpdateDriveList();
179181
UpdateGuiState();
180182
}
181183
}

src/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("PiBootstrapper")]
13-
[assembly: AssemblyCopyright("Copyright © 2018")]
13+
[assembly: AssemblyCopyright("Copyright © 2018 Timothy Johnson")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("2018.1.1")]
36+
//[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)