summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Helpers
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-10-30 20:18:45 +0000
committersr55 <[email protected]>2016-10-30 20:18:45 +0000
commit5cc2fbbca69eaac36d85d63b09cc3af39cee2cf2 (patch)
treeb27c7cb02e6678fe85ef6f1f78b1ed4414572669 /win/CS/HandBrakeWPF/Helpers
parent2c2947ac86ffbf4f5fa9111847ac31efd75c7d05 (diff)
WinGui: Fix a large number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers')
-rw-r--r--win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs5
-rw-r--r--win/CS/HandBrakeWPF/Helpers/LogManager.cs18
-rw-r--r--win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs3
-rw-r--r--win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs9
4 files changed, 28 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
index ec158e751..19969cbaa 100644
--- a/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/AutoNameHelper.cs
@@ -39,6 +39,9 @@ namespace HandBrakeWPF.Helpers
/// <param name="sourceOrLabelName">
/// The Source or Label Name
/// </param>
+ /// <param name="presetName">
+ /// The preset Name.
+ /// </param>
/// <returns>
/// The Generated FileName
/// </returns>
@@ -96,7 +99,7 @@ namespace HandBrakeWPF.Helpers
.Replace(Constants.Title, dvdTitle)
.Replace(Constants.Chapters, combinedChapterTag)
.Replace(Constants.Date, DateTime.Now.Date.ToShortDateString().Replace('/', '-'))
- .Replace(Constants.Time,DateTime.Now.ToString("HH:mm"))
+ .Replace(Constants.Time, DateTime.Now.ToString("HH:mm"))
.Replace(Constants.Preset, sanitisedPresetName);
if (task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality)
diff --git a/win/CS/HandBrakeWPF/Helpers/LogManager.cs b/win/CS/HandBrakeWPF/Helpers/LogManager.cs
index 70347fca1..f551af10e 100644
--- a/win/CS/HandBrakeWPF/Helpers/LogManager.cs
+++ b/win/CS/HandBrakeWPF/Helpers/LogManager.cs
@@ -43,10 +43,28 @@ namespace HandBrakeWPF.Helpers
HandBrakeUtils.ErrorLogged += HandBrakeUtils_ErrorLogged;
}
+ /// <summary>
+ /// Subscribe the ErrorLogged event.
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private static void HandBrakeUtils_ErrorLogged(object sender, HandBrake.ApplicationServices.Interop.EventArgs.MessageLoggedEventArgs e)
{
}
+ /// <summary>
+ /// Subscribe the MessageLogged event.
+ /// </summary>
+ /// <param name="sender">
+ /// The sender.
+ /// </param>
+ /// <param name="e">
+ /// The e.
+ /// </param>
private static void HandBrakeUtils_MessageLogged(object sender, HandBrake.ApplicationServices.Interop.EventArgs.MessageLoggedEventArgs e)
{
}
diff --git a/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs b/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
index 90e3ab0ac..0604de331 100644
--- a/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
@@ -119,6 +119,9 @@ namespace HandBrakeWPF.Helpers
/// <param name="errorService">
/// The error Service.
/// </param>
+ /// <param name="silentRecovery">
+ /// The silent Recovery.
+ /// </param>
/// <returns>
/// The <see cref="bool"/>.
/// </returns>
diff --git a/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs b/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
index 816b9ca82..91a4ee1d8 100644
--- a/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
@@ -29,12 +29,9 @@ namespace HandBrakeWPF.Helpers
internal static TimeSpan ParseChapterTimeStart(string chapterStartRaw)
{
// Format: 02:35:05 and 02:35:05.2957333
- return TimeSpan.ParseExact(chapterStartRaw,
- new[]
- {
- @"hh\:mm\:ss", // Handle whole seconds
- @"hh\:mm\:ss\.FFFFFFF" // Handle fraction seconds
- }, CultureInfo.InvariantCulture);
+ return TimeSpan.ParseExact(
+ chapterStartRaw,
+ new[] { @"hh\:mm\:ss", @"hh\:mm\:ss\.FFFFFFF" }, CultureInfo.InvariantCulture); // Handle whole seconds then Handle fraction seconds
}
}
}