blob: 2d89c9ceaab14fcadba6522ba3beb9d1850aec45 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
namespace Tango.MachineStudio.HardwareDesigner.Comparison
{
/// <summary>
/// class HardwareComponentCompareResult contains collection of HardwareComponentPropertyResult
/// </summary>
/// <seealso cref="Tango.MachineStudio.HardwareDesigner.Comparison.IHasDifference" />
public class HardwareComponentCompareResult: IHasDifference
{
public String ComponentName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance has component1 of a hardware version ( from left panel).
/// </summary>
/// <value>
/// <c>true</c> if this instance has component1; otherwise, <c>false</c>.
/// </value>
public bool HasComponent1 { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance has component2 of a hardware version ( from right panel).
/// </summary>
/// <value>
/// <c>true</c> if this instance has component2; otherwise, <c>false</c>.
/// </value>
public bool HasComponent2 { get; set; }
public SynchronizedObservableCollection<HardwareComponentPropertyResult> Properties { get; set; }
public bool HasDifferences
{
get
{
return Properties.Any(item => item.HasDifferences);
}
}
public HardwareComponentCompareResult()
{
Properties = new SynchronizedObservableCollection<HardwareComponentPropertyResult>();
}
}
}
|