using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core; namespace Tango.MachineStudio.MachineDesigner.Models { /// /// Represents a hardware version collection. /// /// /// public class HardwareCollection : ExtendedObject, IHasDifference { /// /// Gets or sets the name of the collection. /// public String CollectionName { get; set; } /// /// Gets or sets the components. /// public SynchronizedObservableCollection Components { get; set; } /// /// Gets a value indicating whether this instance has differences. /// public bool HasDifferences { get { return Components.Any(item => item.HasDifferences); } } /// /// Initializes a new instance of the class. /// public HardwareCollection() { Components = new SynchronizedObservableCollection(); } } }