// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // A model for the multiple selection window for adding to the queue. // // -------------------------------------------------------------------------------------------------------------------- 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; } } }