diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-10-10 13:57:49 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2019-10-10 13:57:49 +0300 |
| commit | f3feeac903885d92ea5828d68fc91654db62bea9 (patch) | |
| tree | 9d7bedb8eb10e2fca3d95548fd704452a4c560e1 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs | |
| parent | 07280066f97510892838c451bee6c066a7591131 (diff) | |
| download | Tango-f3feeac903885d92ea5828d68fc91654db62bea9.tar.gz Tango-f3feeac903885d92ea5828d68fc91654db62bea9.zip | |
Added comments to hardware comparison code.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/Comparison/HardwareComponentCompareResult.cs | 20 |
1 files changed, 18 insertions, 2 deletions
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 + /// <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; } @@ -21,7 +37,7 @@ namespace Tango.MachineStudio.HardwareDesigner.Comparison { get { - return Properties.Any(item => item.IsDifferent); + return Properties.Any(item => item.HasDifferences); } } |
