diff options
author | sr55 <[email protected]> | 2016-10-30 20:18:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-10-30 20:18:45 +0000 |
commit | 5cc2fbbca69eaac36d85d63b09cc3af39cee2cf2 (patch) | |
tree | b27c7cb02e6678fe85ef6f1f78b1ed4414572669 /win/CS/HandBrakeWPF/Services | |
parent | 2c2947ac86ffbf4f5fa9111847ac31efd75c7d05 (diff) |
WinGui: Fix a large number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
7 files changed, 47 insertions, 27 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs index 0203b0831..9663ae66c 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs @@ -511,6 +511,9 @@ namespace HandBrakeWPF.Services.Encode.Model #region MetaData + /// <summary> + /// Gets or sets the meta data. + /// </summary> public MetaData MetaData { get; set; } #endregion diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs index 8e21820c2..bf5ea27d4 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs @@ -96,9 +96,12 @@ namespace HandBrakeWPF.Services.Encode.Model.Models } /// <summary> + /// Initializes a new instance of the <see cref="AudioTrack"/> class. /// Create a track from a behaviour track. /// </summary> - /// <param name="track">The Behavior track</param> + /// <param name="track"> + /// The Behavior track + /// </param> public AudioTrack(AudioBehaviourTrack track) { this.drc = track.DRC; diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs index 5cf274ee9..e86212a39 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/MetaData.cs @@ -9,16 +9,26 @@ namespace HandBrakeWPF.Services.Encode.Model.Models { + /// <summary> + /// The meta data. + /// </summary> public class MetaData { private string albumArtist; - /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary> + /// <summary> + /// Initializes a new instance of the <see cref="MetaData"/> class. + /// </summary> public MetaData() { } - /// <summary>Initializes a new instance of the <see cref="T:System.Object" /> class.</summary> + /// <summary> + /// Initializes a new instance of the <see cref="MetaData"/> class. + /// </summary> + /// <param name="metadata"> + /// The metadata. + /// </param> public MetaData(MetaData metadata) { if (metadata != null) diff --git a/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs index 4cc177a3d..fb46b932f 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Interfaces/IPresetService.cs @@ -148,6 +148,12 @@ namespace HandBrakeWPF.Services.Presets.Interfaces /// <summary>
/// Replace an existing preset with a modified one.
/// </summary>
+ /// <param name="existing">
+ /// The existing.
+ /// </param>
+ /// <param name="replacement">
+ /// The replacement.
+ /// </param>
void Replace(Preset existing, Preset replacement);
}
}
\ No newline at end of file diff --git a/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs b/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs index 4ecc0c502..04e2395ea 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs @@ -36,17 +36,18 @@ namespace HandBrakeWPF.Services.Presets.Model #endregion
/// <summary>
- /// Initializes a new instance of the <see cref="PropertyChangedBase"/> class.
- /// Creates an instance of <see cref="T:HandBrakeWPF.Utilities.PropertyChangedBase"/>.
+ /// Initializes a new instance of the <see cref="Preset"/> class.
/// </summary>
public Preset()
{
}
/// <summary>
- /// Initializes a new instance of the <see cref="PropertyChangedBase"/> class.
- /// Creates an instance of <see cref="T:HandBrakeWPF.Utilities.PropertyChangedBase"/>.
+ /// Initializes a new instance of the <see cref="Preset"/> class.
/// </summary>
+ /// <param name="preset">
+ /// The preset.
+ /// </param>
public Preset(Preset preset)
{
this.Category = preset.Category;
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index 6c4a48864..8af0b3d03 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -256,6 +256,12 @@ namespace HandBrakeWPF.Services.Presets /// <summary>
/// Replace an existing preset with a modified one.
/// </summary>
+ /// <param name="existing">
+ /// The existing.
+ /// </param>
+ /// <param name="replacement">
+ /// The replacement.
+ /// </param>
public void Replace(Preset existing, Preset replacement)
{
this.Remove(existing);
@@ -521,7 +527,6 @@ namespace HandBrakeWPF.Services.Presets PresetTransportContainer container = null;
using (StreamReader reader = new StreamReader(this.presetFile))
{
-
try
{
container = JsonConvert.DeserializeObject<PresetTransportContainer>(reader.ReadToEnd());
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs index afa167b9c..e9cce2b32 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs @@ -14,14 +14,11 @@ namespace HandBrakeWPF.Services.Queue using System.ComponentModel;
using System.IO;
using System.Linq;
- using System.Runtime.InteropServices.WindowsRuntime;
- using System.Windows;
using System.Xml.Serialization;
using HandBrake.ApplicationServices.Model;
using HandBrakeWPF.Factories;
- using HandBrakeWPF.Properties;
using HandBrakeWPF.Services.Encode.Factories;
using HandBrakeWPF.Services.Encode.Model;
using HandBrakeWPF.Services.Interfaces;
@@ -46,25 +43,12 @@ namespace HandBrakeWPF.Services.Queue /// A Lock object to maintain thread safety
/// </summary>
private static readonly object QueueLock = new object();
-
- /// <summary>
- /// The Queue of Job objects
- /// </summary>
+ private readonly IUserSettingService userSettingService;
+ private readonly IErrorService errorService;
private readonly BindingList<QueueTask> queue = new BindingList<QueueTask>();
-
- /// <summary>
- /// HandBrakes Queue file with a place holder for an extra string.
- /// </summary>
private readonly string queueFile;
-
- /// <summary>
- /// The clear completed.
- /// </summary>
private bool clearCompleted;
- private readonly IUserSettingService userSettingService;
- private readonly IErrorService errorService;
-
#endregion
#region Constructors and Destructors
@@ -145,6 +129,9 @@ namespace HandBrakeWPF.Services.Queue /// </summary>
public event EventHandler QueuePaused;
+ /// <summary>
+ /// The low diskspace detected.
+ /// </summary>
public event EventHandler LowDiskspaceDetected;
#endregion
@@ -247,6 +234,9 @@ namespace HandBrakeWPF.Services.Queue /// <summary>
/// Export the Queue the standardised JSON format.
/// </summary>
+ /// <param name="exportPath">
+ /// The export Path.
+ /// </param>
public void ExportJson(string exportPath)
{
List<QueueTask> jobs = this.queue.Where(item => item.Status != QueueItemStatus.Completed).ToList();
@@ -640,6 +630,9 @@ namespace HandBrakeWPF.Services.Queue this.IsProcessing = false;
}
+ /// <summary>
+ /// The on low diskspace detected.
+ /// </summary>
protected virtual void OnLowDiskspaceDetected()
{
this.LowDiskspaceDetected?.Invoke(this, EventArgs.Empty);
@@ -683,6 +676,5 @@ namespace HandBrakeWPF.Services.Queue }
#endregion
-
}
}
\ No newline at end of file |