fixed hardcoded version info + code cleanup
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
using ImageMagick;
|
using ImageMagick;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PDFWorkflowManager
|
namespace PDFWorkflowManager
|
||||||
{
|
{
|
||||||
|
@@ -1,11 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace PDFWorkflowManager
|
namespace PDFWorkflowManager
|
||||||
|
@@ -7,6 +7,7 @@ using System.Drawing;
|
|||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -1328,13 +1329,22 @@ namespace PDFWorkflowManager
|
|||||||
|
|
||||||
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MessageBox.Show("PDF Workflow Manager v0.9.4 \r\n\r\nCopyright (c) 2023-2025 https://retro-commodore.eu", "Version", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
var assembly = Assembly.GetExecutingAssembly();
|
||||||
}
|
var version = assembly.GetName().Version.ToString();
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
var copyrightAttr = assembly
|
||||||
{
|
.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)
|
||||||
//GalleryForm sf = new GalleryForm(workOutDir);
|
.OfType<AssemblyCopyrightAttribute>()
|
||||||
//sf.ShowDialog();
|
.FirstOrDefault();
|
||||||
|
|
||||||
|
var copyright = copyrightAttr?.Copyright ?? "Copyright info not found";
|
||||||
|
|
||||||
|
MessageBox.Show(
|
||||||
|
$"PDF Workflow Manager v{version}\r\n\r\n{copyright}",
|
||||||
|
"Version",
|
||||||
|
MessageBoxButtons.OK,
|
||||||
|
MessageBoxIcon.Information
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace PDFWorkflowManager
|
namespace PDFWorkflowManager
|
||||||
{
|
{
|
||||||
|
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("Retro Commodore")]
|
[assembly: AssemblyCompany("Retro Commodore")]
|
||||||
[assembly: AssemblyProduct("PDF Workflow Manager")]
|
[assembly: AssemblyProduct("PDF Workflow Manager")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023-2024 https://retro-commodore.eu")]
|
[assembly: AssemblyCopyright("Copyright © 2023-2025 https://retro-commodore.eu")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.9.3")]
|
[assembly: AssemblyVersion("0.9.4")]
|
||||||
[assembly: AssemblyFileVersion("0.9.3")]
|
[assembly: AssemblyFileVersion("0.9.4")]
|
||||||
|
Reference in New Issue
Block a user