// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the SourceMenuItem type. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Model { using System.Collections.ObjectModel; using System.Windows.Input; /// /// The source menu item. /// public class SourceMenuItem { /// /// Initializes a new instance of the class. /// public SourceMenuItem() { this.Children = new ObservableCollection(); } /// /// Gets or sets the text. /// public string Text { get; set; } /// /// Gets or sets the command. /// public ICommand Command { get; set; } /// /// Gets or sets the children. /// public ObservableCollection Children { get; set; } /// /// Gets or sets a value indicating whether is drive. /// public bool IsDrive { get; set; } /// /// Gets or sets a value indicating whether is open folder. /// public bool IsOpenFolder { get; set; } /// /// Gets a value indicating whether is open file. /// public bool IsOpenFile { get { return !this.IsOpenFolder && !this.IsDrive && (this.Children == null || this.Children.Count == 0); } } /// /// Gets or sets the tag. /// public object Tag { get; set; } /// /// Gets or sets the input gesture text. /// public string InputGestureText { get; set; } } }