aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareCompareResult.cs
blob: 6021f309e9353abd728ce9fc4da579f5fadf7b10 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;

namespace Tango.MachineStudio.HardwareDesigner.Comparison
{
    public class HardwareCompareResult
    {
        public SynchronizedObservableCollection<HardwareComponentCollectionCompareResult> Collections { get; set; }
        public bool HasDifferences
        {
            get
            {
                return Collections.Any(item => item.HasDifferences);
            }
        }

        public HardwareCompareResult()
        {
            Collections = new SynchronizedObservableCollection<HardwareComponentCollectionCompareResult>();
        }
    }
}