diff options
author | sr55 <[email protected]> | 2012-04-06 22:47:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-04-06 22:47:52 +0000 |
commit | 1908ceb760de50f2be2ea874926d9c7a0c28c9f5 (patch) | |
tree | ecef7436ac005dcc3d0cd8b2bcd182af28d51878 /win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs | |
parent | 5c536a641808812b493d185722729ff402cbb5b7 (diff) |
WinGui: (WPF) Initial Implementation of title specific scanning.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4582 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs new file mode 100644 index 000000000..06055dff1 --- /dev/null +++ b/win/CS/HandBrakeWPF/ViewModels/TitleSpecificViewModel.cs @@ -0,0 +1,85 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="TitleSpecificViewModel.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>
+// Defines the TitleSpecificViewModel type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrakeWPF.ViewModels
+{
+ using System.ComponentModel.Composition;
+
+ using HandBrakeWPF.ViewModels.Interfaces;
+
+ /// <summary>
+ /// The Title Specific View Model
+ /// </summary>
+ [Export(typeof(ITitleSpecificViewModel))]
+ public class TitleSpecificViewModel : ViewModelBase, ITitleSpecificViewModel
+ {
+ #region Constants and Fields
+
+ /// <summary>
+ /// The selected title.
+ /// </summary>
+ private int? selectedTitle;
+
+ #endregion
+
+ #region Constructors and Destructors
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TitleSpecificViewModel"/> class.
+ /// </summary>
+ public TitleSpecificViewModel()
+ {
+ this.SelectedTitle = 0;
+ }
+
+ #endregion
+
+ #region Properties
+
+ /// <summary>
+ /// Gets or sets SelectedTitle.
+ /// </summary>
+ public int? SelectedTitle
+ {
+ get
+ {
+ return this.selectedTitle;
+ }
+
+ set
+ {
+ this.selectedTitle = value;
+ this.NotifyOfPropertyChange(() => this.SelectedTitle);
+ }
+ }
+
+ #endregion
+
+ #region Public Methods
+
+ /// <summary>
+ /// Cancel the request to scan.
+ /// </summary>
+ public void Cancel()
+ {
+ this.selectedTitle = null;
+ this.TryClose();
+ }
+
+ /// <summary>
+ /// Open the selected title.
+ /// </summary>
+ public void Open()
+ {
+ this.TryClose();
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file |