diff options
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities')
5 files changed, 38 insertions, 18 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/Converters.cs b/win/CS/HandBrake.ApplicationServices/Utilities/Converters.cs index d681106e0..3e61b35d8 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/Converters.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/Converters.cs @@ -154,8 +154,6 @@ namespace HandBrake.ApplicationServices.Utilities }
}
-
-
/// <summary>
/// Get the GUI equiv to a GUI audio encoder string
/// </summary>
@@ -232,7 +230,6 @@ namespace HandBrake.ApplicationServices.Utilities #region Video
-
/// <summary>
/// Get the Video Encoder for a given string
/// </summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/Execute.cs b/win/CS/HandBrake.ApplicationServices/Utilities/Execute.cs index 7f5889891..c98140977 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/Execute.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/Execute.cs @@ -27,7 +27,7 @@ namespace HandBrake.ApplicationServices.Utilities private static bool? inDesignMode;
/// <summary>
- /// Indicates whether or not the framework is in design-time mode.
+ /// Gets a value indicating whether or not the framework is in design-time mode.
/// </summary>
public static bool InDesignMode
{
@@ -72,6 +72,12 @@ namespace HandBrake.ApplicationServices.Utilities Execute.dispatcher = (Dispatcher)null;
}
+ /// <summary>
+ /// The validate dispatcher.
+ /// </summary>
+ /// <exception cref="InvalidOperationException">
+ /// Not initialized with dispatcher.
+ /// </exception>
private static void ValidateDispatcher()
{
if (Execute.dispatcher == null)
@@ -91,7 +97,12 @@ namespace HandBrake.ApplicationServices.Utilities /// <summary>
/// Executes the action on the UI thread asynchronously.
/// </summary>
- /// <param name="action">The action to execute.</param>
+ /// <param name="action">
+ /// The action to execute.
+ /// </param>
+ /// <returns>
+ /// The <see cref="Task"/>.
+ /// </returns>
public static Task OnUIThreadAsync(this System.Action action)
{
Execute.ValidateDispatcher();
@@ -112,6 +123,12 @@ namespace HandBrake.ApplicationServices.Utilities return (Task)taskSource.Task;
}
+ /// <summary>
+ /// The check access.
+ /// </summary>
+ /// <returns>
+ /// The <see cref="bool"/>.
+ /// </returns>
private static bool CheckAccess()
{
if (Execute.dispatcher != null)
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/ExtensionMethods.cs b/win/CS/HandBrake.ApplicationServices/Utilities/ExtensionMethods.cs index 53db9e23f..9966002c7 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/ExtensionMethods.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/ExtensionMethods.cs @@ -1,20 +1,31 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="ExtensionMethods.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// The extension methods.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Utilities
{
using System.Linq.Expressions;
using System.Reflection;
+ /// <summary>
+ /// The extension methods.
+ /// </summary>
public static class ExtensionMethods
{
/// <summary>
/// Converts an expression into a <see cref="MemberInfo"/>.
/// </summary>
- /// <param name="expression">The expression to convert.</param>
- /// <returns>The member info.</returns>
+ /// <param name="expression">
+ /// The expression to convert.
+ /// </param>
+ /// <returns>
+ /// The member info.
+ /// </returns>
public static MemberInfo GetMemberInfo(this Expression expression)
{
var lambda = (LambdaExpression)expression;
@@ -30,6 +41,5 @@ namespace HandBrake.ApplicationServices.Utilities return memberExpression.Member;
}
-
}
}
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs index 2e8e3f05f..f92332c61 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs @@ -29,11 +29,6 @@ namespace HandBrake.ApplicationServices.Utilities /// </summary>
private static readonly string LogDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
- /// <summary>
- /// The is lib hb present.
- /// </summary>
- private static bool? isLibHbPresent;
-
#endregion
#region Properties
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PropertyChangedBase.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PropertyChangedBase.cs index b5de5dd22..071243621 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/PropertyChangedBase.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/PropertyChangedBase.cs @@ -27,7 +27,7 @@ namespace HandBrake.ApplicationServices.Utilities private bool isNotifying;
/// <summary>
- /// Enables/Disables property change notification.
+ /// Gets or sets a value indicating whether the Enables/Disables property change notification.
/// </summary>
[Browsable(false)]
public bool IsNotifying
@@ -48,6 +48,7 @@ namespace HandBrake.ApplicationServices.Utilities public event PropertyChangedEventHandler PropertyChanged = (param0, param1) => { };
/// <summary>
+ /// Initializes a new instance of the <see cref="PropertyChangedBase"/> class.
/// Creates an instance of <see cref="T:HandBrake.ApplicationServices.Utilities.PropertyChangedBase"/>.
/// </summary>
public PropertyChangedBase()
|