From 2ebe9078a3c73bf7de458df8f40781077f35efed Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Wed, 3 Jan 2018 16:07:04 +0000 Subject: [PATCH 1/3] Remove history and cleanup Release history has been moved to GitHub wiki --- TVRename#/Properties/AssemblyInfo.cs | 48 ++-------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/TVRename#/Properties/AssemblyInfo.cs b/TVRename#/Properties/AssemblyInfo.cs index 73104eaf7..baec54baf 100644 --- a/TVRename#/Properties/AssemblyInfo.cs +++ b/TVRename#/Properties/AssemblyInfo.cs @@ -2,9 +2,6 @@ using System.Runtime.InteropServices; using System.Resources; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. [assembly: AssemblyTitle("TV Rename")] [assembly: AssemblyDescription("TV Rename")] [assembly: AssemblyConfiguration("")] @@ -13,51 +10,10 @@ [assembly: AssemblyCopyright("Copyright © 2007-2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("3b5746c1-a5f7-48c2-a8de-95619489049b")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// 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.*")] - - -// all versions while developing are marked (dev) -// only remove for final release build for upload -// to site. - -// Release history: -// Version 2.3b1 released 18 August 2017 -// Version 2.2.3 released 20 August 2012, r214 -// Version 2.2.2 released 19 August 2012, r209 -// Version 2.2.2a1 released 18 August 2012, r207 -// Version 2.2.1 released 12 August 2012, r204 -// Version 2.2.0b10 released 7 October 2011, r173 -// Version 2.2.0b9 released 18 June 2011, r161 -// Version 2.2.0b8 released 18 June 2011, r159 -// Version 2.2.0b7 released 20 January 2011, r143 -// Version 2.2.0b6 unofficial release 2010 -// Version 2.2.0b5 released 2 May 2010, r133 -// Version 2.2.0b4 released 26 April 2010, r128 -// Version 2.2.0b3 released 16 April 2010, r110 -// Version 2.2.0b2 released 14 April 2010, r108 -// Version 2.2.0b1 released 9 April 2010, r94 - - +[assembly: NeutralResourcesLanguageAttribute("")] [assembly: AssemblyVersion("2.3.0.0")] [assembly: AssemblyFileVersion("2.3.0")] -[assembly: AssemblyInformationalVersion("2.3 RC")] -[assembly: NeutralResourcesLanguageAttribute("")] +[assembly: AssemblyInformationalVersion("2.3 RC")] // Display version From 2efc32828359687f08a8ce72394cfff31d517583 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Wed, 3 Jan 2018 16:07:12 +0000 Subject: [PATCH 2/3] Cleanup formatting --- TVRename#/App/Version.cs | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/TVRename#/App/Version.cs b/TVRename#/App/Version.cs index 06b0c2b13..d2293eb9d 100644 --- a/TVRename#/App/Version.cs +++ b/TVRename#/App/Version.cs @@ -1,44 +1,20 @@ -// -// Main website for TVRename is http://tvrename.com -// -// Source code available at http://code.google.com/p/tvrename/ -// -// This code is released under GPLv3 http://www.gnu.org/licenses/gpl.html -// - using System; using System.Linq; using System.Reflection; namespace TVRename { - // What version are we? - // Are we running under Mono, rather than MS.NET ? public static class Version { - private static bool? OnMonoCached; - - public static bool OnMono() - { - if (!OnMonoCached.HasValue) - OnMonoCached = Type.GetType("Mono.Runtime") != null; - return OnMonoCached.Value; - } - - public static bool OnWindows() - { - return Environment.OSVersion.Platform == PlatformID.Win32NT; - } - + public static bool OnMono() => Type.GetType("Mono.Runtime") != null; + public static string DisplayVersionString() { - string v = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false).Cast().First().InformationalVersion; #if DEBUG v += " ** Debug Build **"; #endif return v; - } } } From 509755a64981e2c676ac92adb39bf87edc579051 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Wed, 3 Jan 2018 16:07:56 +0000 Subject: [PATCH 3/3] Inline variable declaration --- TVRename#/App/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TVRename#/App/Program.cs b/TVRename#/App/Program.cs index c0e2ffe66..ad66da3bc 100644 --- a/TVRename#/App/Program.cs +++ b/TVRename#/App/Program.cs @@ -27,8 +27,7 @@ private static void Main(string[] args) Application.SetCompatibleTextRenderingDefault(false); // Check if an application instance is already running - bool newInstance; - Mutex mutex = new Mutex(true, "TVRename", out newInstance); + Mutex mutex = new Mutex(true, "TVRename", out bool newInstance); if (!newInstance) {