aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Models/HardwareCollection.cs
blob: 765bc9dfda166f25b6d4177b47d3306bf0c8f33e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;

namespace Tango.MachineStudio.MachineDesigner.Models
{
    public class HardwareCollection : ExtendedObject
    {
        public String CollectionName { get; set; }

        public SynchronizedObservableCollection<HardwareComponent> Components { get; set; }
        public bool HasDifferences
        {
            get
            {
                return Components.Any(item => item.HasDifferences);
            }
        }
        public HardwareCollection()
        {
            Components = new SynchronizedObservableCollection<HardwareComponent>();
        }
    }
}