summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Preset.cs60
1 files changed, 45 insertions, 15 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
index 448d1a33e..128bf5c21 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs
@@ -9,35 +9,59 @@
namespace HandBrake.ApplicationServices.Model
{
+ using Caliburn.Micro;
+
/// <summary>
/// A Preset for encoding with.
/// </summary>
- public class Preset
+ public class Preset : PropertyChangedBase
{
+ #region Constants and Fields
+
+ /// <summary>
+ /// The is default.
+ /// </summary>
+ private bool isDefault;
+
+ #endregion
+
+ #region Properties
+
/// <summary>
/// Gets or sets the category which the preset resides under
/// </summary>
public string Category { get; set; }
/// <summary>
- /// Gets or sets the preset name
+ /// Gets or sets the Description for the preset
/// </summary>
- public string Name { get; set; }
+ public string Description { get; set; }
/// <summary>
- /// Gets or sets The version number which associates this preset with a HB build
+ /// Gets or sets a value indicating whether this is a built in preset
/// </summary>
- public string Version { get; set; }
+ public bool IsBuildIn { get; set; }
/// <summary>
- /// Gets or sets the Description for the preset
+ /// Gets or sets a value indicating whether IsDefault.
/// </summary>
- public string Description { get; set; }
+ public bool IsDefault
+ {
+ get
+ {
+ return this.isDefault;
+ }
+ set
+ {
+ this.isDefault = value;
+ this.NotifyOfPropertyChange(() => this.IsDefault);
+ }
+ }
/// <summary>
- /// Gets or sets a value indicating whether Picture Filters are used with this preset.
+ /// Gets or sets the preset name
/// </summary>
- public bool UsePictureFilters { get; set; }
+ public string Name { get; set; }
/// <summary>
/// Gets or sets PictureSettingsMode.
@@ -46,19 +70,23 @@ namespace HandBrake.ApplicationServices.Model
public PresetPictureSettingsMode PictureSettingsMode { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether this is a built in preset
+ /// Gets or sets task.
/// </summary>
- public bool IsBuildIn { get; set; }
+ public EncodeTask Task { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether IsDefault.
+ /// Gets or sets a value indicating whether Picture Filters are used with this preset.
/// </summary>
- public bool IsDefault { get; set; }
+ public bool UsePictureFilters { get; set; }
/// <summary>
- /// Gets or sets task.
+ /// Gets or sets The version number which associates this preset with a HB build
/// </summary>
- public EncodeTask Task { get; set; }
+ public string Version { get; set; }
+
+ #endregion
+
+ #region Public Methods
/// <summary>
/// Override the ToString Method
@@ -70,5 +98,7 @@ namespace HandBrake.ApplicationServices.Model
{
return this.Name;
}
+
+ #endregion
}
} \ No newline at end of file