Skip to content

Commit

Permalink
Merge pull request #254 from JoeBiellik/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
JoeBiellik authored Jan 3, 2018
2 parents a9a0cb8 + 509755a commit fef9140
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 74 deletions.
3 changes: 1 addition & 2 deletions TVRename#/App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
28 changes: 2 additions & 26 deletions TVRename#/App/Version.cs
Original file line number Diff line number Diff line change
@@ -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<AssemblyInformationalVersionAttribute>().First().InformationalVersion;
#if DEBUG
v += " ** Debug Build **";
#endif
return v;

}
}
}
48 changes: 2 additions & 46 deletions TVRename#/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]
Expand All @@ -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

0 comments on commit fef9140

Please sign in to comment.