From 6c4a21f617617adab18fa5810dcae8ba8a070c03 Mon Sep 17 00:00:00 2001 From: Stefan Karlsson Date: Fri, 5 Feb 2021 12:41:15 +0100 Subject: [PATCH] Updated version information to match github tag. Also added the version number to the title of the main window. --- PasteIntoFile/Properties/AssemblyInfo.cs | 10 +++++----- PasteIntoFile/frmMain.Designer.cs | 2 +- PasteIntoFile/frmMain.cs | 6 +++++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/PasteIntoFile/Properties/AssemblyInfo.cs b/PasteIntoFile/Properties/AssemblyInfo.cs index c316d43..076c98e 100644 --- a/PasteIntoFile/Properties/AssemblyInfo.cs +++ b/PasteIntoFile/Properties/AssemblyInfo.cs @@ -8,9 +8,9 @@ [assembly: AssemblyTitle("PasteIntoFile")] [assembly: AssemblyDescription("Paste Clipboard Contents Into Files")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("EslaMxSoft 2014")] -[assembly: AssemblyProduct("PasteIntoFile v1.4")] -[assembly: AssemblyCopyright("Copyright © EslaMxSoft 2014")] +[assembly: AssemblyCompany("EslaMxSoft 2021")] +[assembly: AssemblyProduct("PasteIntoFile v1.5")] +[assembly: AssemblyCopyright("Copyright © EslaMxSoft 2021")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.4.0.1")] -[assembly: AssemblyFileVersion("1.4.0.1")] +[assembly: AssemblyVersion("1.5.0.0")] +[assembly: AssemblyFileVersion("1.5.0.0")] diff --git a/PasteIntoFile/frmMain.Designer.cs b/PasteIntoFile/frmMain.Designer.cs index a6636b4..6cd83c6 100644 --- a/PasteIntoFile/frmMain.Designer.cs +++ b/PasteIntoFile/frmMain.Designer.cs @@ -180,7 +180,7 @@ private void InitializeComponent() this.lblMe.Name = "lblMe"; this.lblMe.Size = new System.Drawing.Size(161, 17); this.lblMe.TabIndex = 12; - this.lblMe.Text = "© Eslam Hamouda 2014"; + this.lblMe.Text = "© Eslam Hamouda 2021"; this.lblMe.Click += new System.EventHandler(this.lblMe_Click); // // lblWebsite diff --git a/PasteIntoFile/frmMain.cs b/PasteIntoFile/frmMain.cs index bce6897..2b9ba82 100644 --- a/PasteIntoFile/frmMain.cs +++ b/PasteIntoFile/frmMain.cs @@ -8,6 +8,7 @@ using System.Drawing.Imaging; using System.IO; using System.Linq; +using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -35,6 +36,9 @@ private void frmMain_Load(object sender, EventArgs e) txtFilename.Text = DateTime.Now.ToString(filename); txtCurrentLocation.Text = CurrentLocation ?? @"C:\"; + var appVersion = Assembly.GetExecutingAssembly().GetName().Version; + Text += String.Format(" v{0}", appVersion); + if (Registry.GetValue(@"HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Paste Into File\command", "", null) == null) { if (MessageBox.Show("Seems that you are running this application for the first time,\nDo you want to Register it with your system Context Menu ?", "Paste Into File", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) @@ -138,7 +142,7 @@ private void lblHelp_Click(object sender, EventArgs e) msg += "\nto Unregister the application use this argument : /unreg\n"; msg += "\nTo change the format of the default filename, use this argument: /filename yyyy-MM-dd_HHmm\n"; msg += "\n--------------------\nSend Feedback to : eslamx7@gmail.com\n\nThanks :)"; - MessageBox.Show(msg, "Paste As File Help", MessageBoxButtons.OK, MessageBoxIcon.Information); + MessageBox.Show(msg, "Paste Into File Help", MessageBoxButtons.OK, MessageBoxIcon.Information);