From f1f5d2c1b9c020dc07d1c8e8f3c1120310972fa1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 3 Dec 2010 21:08:10 +0000 Subject: WinGui: - Sort the versioning out for the upcoming release. - Move the EnumHelper to the correct library. It was in the wrong place. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3699 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrake.Framework/HandBrake.Framework.csproj | 1 - win/C#/HandBrake.Framework/Helpers/EnumHelper.cs | 35 ---------------------- .../Model/UpdateCheckInformation.cs | 2 -- .../HandBrake.Framework/Services/UpdateService.cs | 1 - 4 files changed, 39 deletions(-) delete mode 100644 win/C#/HandBrake.Framework/Helpers/EnumHelper.cs (limited to 'win/C#/HandBrake.Framework') diff --git a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj b/win/C#/HandBrake.Framework/HandBrake.Framework.csproj index 30c5ea6d6..8d806e5b8 100644 --- a/win/C#/HandBrake.Framework/HandBrake.Framework.csproj +++ b/win/C#/HandBrake.Framework/HandBrake.Framework.csproj @@ -55,7 +55,6 @@ - diff --git a/win/C#/HandBrake.Framework/Helpers/EnumHelper.cs b/win/C#/HandBrake.Framework/Helpers/EnumHelper.cs deleted file mode 100644 index 640081184..000000000 --- a/win/C#/HandBrake.Framework/Helpers/EnumHelper.cs +++ /dev/null @@ -1,35 +0,0 @@ -/* EnumHelper.cs $ - This file is part of the HandBrake source code. - Homepage: . - It may be used under the terms of the GNU General Public License. */ - -namespace HandBrake.Framework.Helpers -{ - using System.ComponentModel; - using System.Reflection; - using System; - - /// - /// Enum Helpers - /// - public class EnumHelper - { - /// - /// Get the description of an Enum - /// - /// - /// The value. - /// - /// - /// The Description string - /// - public static string GetDescription(Enum value) - { - FieldInfo fieldInfo = value.GetType().GetField(value.ToString()); - DescriptionAttribute[] attributes = - (DescriptionAttribute[])fieldInfo.GetCustomAttributes( - typeof(DescriptionAttribute), false); - return (attributes.Length > 0) ? attributes[0].Description : value.ToString(); - } - } -} diff --git a/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs b/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs index 668d8a668..ff59dce72 100644 --- a/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs +++ b/win/C#/HandBrake.Framework/Model/UpdateCheckInformation.cs @@ -6,8 +6,6 @@ namespace HandBrake.Framework.Model { using System; - using HandBrake.Framework.Helpers; - using HandBrake.Framework.Services; using HandBrake.Framework.Services.Interfaces; /// diff --git a/win/C#/HandBrake.Framework/Services/UpdateService.cs b/win/C#/HandBrake.Framework/Services/UpdateService.cs index 31fb85525..0bbd781f3 100644 --- a/win/C#/HandBrake.Framework/Services/UpdateService.cs +++ b/win/C#/HandBrake.Framework/Services/UpdateService.cs @@ -10,7 +10,6 @@ namespace HandBrake.Framework.Services using System.Net; using System.Threading; - using HandBrake.Framework.Helpers; using HandBrake.Framework.Model; using HandBrake.Framework.Services.Interfaces; -- cgit v1.2.3