diff options
author | sr55 <[email protected]> | 2010-12-03 21:08:10 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-12-03 21:08:10 +0000 |
commit | f1f5d2c1b9c020dc07d1c8e8f3c1120310972fa1 (patch) | |
tree | 62503a261a17e48de4ed03ce2acc9ec48f047617 /win/C#/HandBrake.Framework | |
parent | 5d6b22826353d5028799362292cd85e5da91cfaf (diff) |
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
Diffstat (limited to 'win/C#/HandBrake.Framework')
4 files changed, 0 insertions, 39 deletions
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 @@ </ItemGroup>
<ItemGroup>
<Compile Include="Services\AppcastReader.cs" />
- <Compile Include="Helpers\EnumHelper.cs" />
<Compile Include="Model\UpdateCheckResult.cs" />
<Compile Include="Model\UpdateCheckInformation.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
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: <http://handbrake.fr>.
- 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;
-
- /// <summary>
- /// Enum Helpers
- /// </summary>
- public class EnumHelper
- {
- /// <summary>
- /// Get the description of an Enum
- /// </summary>
- /// <param name="value">
- /// The value.
- /// </param>
- /// <returns>
- /// The Description string
- /// </returns>
- 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;
/// <summary>
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;
|