From 98749c2316335055e1742b205cb627255ca3d71a Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 20 Jan 2013 14:21:58 +0000 Subject: WinGui: Just some prototype code for safe keeping. Not currently used. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5185 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/Model/SelectionTitle.cs | 88 +++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 win/CS/HandBrakeWPF/Model/SelectionTitle.cs (limited to 'win/CS/HandBrakeWPF/Model/SelectionTitle.cs') diff --git a/win/CS/HandBrakeWPF/Model/SelectionTitle.cs b/win/CS/HandBrakeWPF/Model/SelectionTitle.cs new file mode 100644 index 000000000..63ad47793 --- /dev/null +++ b/win/CS/HandBrakeWPF/Model/SelectionTitle.cs @@ -0,0 +1,88 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// TODO: Update summary. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrakeWPF.Model +{ + using Caliburn.Micro; + + using HandBrake.ApplicationServices.Parsing; + + /// + /// A model for the multiple selection window for adding to the queue. + /// + public class SelectionTitle : PropertyChangedBase + { + /// + /// The source name. + /// + private readonly string sourceName; + + /// + /// The is selected. + /// + private bool isSelected; + + /// + /// Initializes a new instance of the class. + /// + /// + /// The title. + /// + /// + /// The source Name. + /// + public SelectionTitle(Title title, string sourceName) + { + this.sourceName = sourceName; + this.Title = title; + } + + /// + /// Gets the source name. + /// + public string SourceName + { + get + { + return !string.IsNullOrEmpty(Title.SourceName) ? Title.SourceName : sourceName; + } + } + + /// + /// Gets or sets the end point. + /// + public int EndPoint { get; set; } + + /// + /// Gets or sets a value indicating whether is selected. + /// + public bool IsSelected + { + get + { + return this.isSelected; + } + set + { + this.isSelected = value; + this.NotifyOfPropertyChange(() => this.IsSelected); + } + } + + /// + /// Gets or sets the start point. + /// + public int StartPoint { get; set; } + + /// + /// Gets or sets the title. + /// + public Title Title { get; set; } + } +} \ No newline at end of file -- cgit v1.2.3