Automatic version string
This commit is contained in:
parent
3a7a04920d
commit
62b6e586ed
1 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ using System.Drawing;
|
|||
using System.Drawing.Text;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -39,6 +40,9 @@ namespace ImageCatalog
|
|||
_Button6.Name = "Button6";
|
||||
_btnCreaCatalogoAsync.Name = "btnCreaCatalogoAsync";
|
||||
|
||||
var version = Assembly.GetExecutingAssembly().GetName().Version;
|
||||
_Label27.Text = $"Version: {version.Major}.{version.Minor}.{version.Build}";
|
||||
|
||||
_results = new ConcurrentBag<string>();
|
||||
UiUpdateEvent += OnUiUpdateEvent;
|
||||
|
||||
|
|
@ -875,7 +879,7 @@ namespace ImageCatalog
|
|||
{
|
||||
if (ProgressBar1.InvokeRequired)
|
||||
{
|
||||
ProgressBar1.Invoke(new MethodInvoker(ProgressBar1.PerformStep));
|
||||
ProgressBar1.Invoke(new System.Windows.Forms.MethodInvoker(ProgressBar1.PerformStep));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue