using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
namespace Tango.MachineStudio.HardwareDesigner.Comparison
{
///
/// class HardwareComponentCompareResult contains collection of HardwareComponentPropertyResult
///
///
public class HardwareComponentCompareResult: IHasDifference
{
public String ComponentName { get; set; }
///
/// Gets or sets a value indicating whether this instance has component1 of a hardware version ( from left panel).
///
///
/// true if this instance has component1; otherwise, false.
///
public bool HasComponent1 { get; set; }
///
/// Gets or sets a value indicating whether this instance has component2 of a hardware version ( from right panel).
///
///
/// true if this instance has component2; otherwise, false.
///
public bool HasComponent2 { get; set; }
public SynchronizedObservableCollection Properties { get; set; }
public bool HasDifferences
{
get
{
return Properties.Any(item => item.HasDifferences);
}
}
public HardwareComponentCompareResult()
{
Properties = new SynchronizedObservableCollection();
}
}
}