Skip to content

Commit

Permalink
Add "SC" suffix to version number in about box for self contained dep…
Browse files Browse the repository at this point in the history
…loyments
  • Loading branch information
mukunku committed Aug 30, 2023
1 parent abfad6a commit 854bb0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ParquetViewer/AboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ namespace ParquetViewer
{
public partial class AboutBox : Form
{
#if RELEASE_SELFCONTAINED
private bool _isSelfContainedExe = true;
#else
private bool _isSelfContainedExe = false;
#endif
public AboutBox()
{
InitializeComponent();
this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion);
this.labelVersion.Text = String.Format("Version {0}{1}", AssemblyVersion, _isSelfContainedExe ? " SC" : string.Empty);
this.labelCopyright.Text = AssemblyCopyright;
this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
Expand Down

0 comments on commit 854bb0d

Please sign in to comment.