From f3feeac903885d92ea5828d68fc91654db62bea9 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 10 Oct 2019 13:57:49 +0300 Subject: Added comments to hardware comparison code. --- .../Comparison/HardwareComponentCompareResult.cs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs index 447984a5f..2d89c9cea 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs @@ -7,12 +7,28 @@ using Tango.Core; namespace Tango.MachineStudio.HardwareDesigner.Comparison { - public class HardwareComponentCompareResult + /// + /// 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; } @@ -21,7 +37,7 @@ namespace Tango.MachineStudio.HardwareDesigner.Comparison { get { - return Properties.Any(item => item.IsDifferent); + return Properties.Any(item => item.HasDifferences); } } -- cgit v1.3.1