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

namespace Tango.MachineStudio.HardwareDesigner.Comparison
{
    /// <summary>
    /// class HardwareComponentPropertyResult contains 2 values of a property for the comparison hardware versions 
    /// </summary>
    /// <seealso cref="Tango.MachineStudio.HardwareDesigner.Comparison.IHasDifference" />
    public class HardwareComponentPropertyResult: IHasDifference
    {
        /// <summary>
        /// Gets or sets the name of the property.
        /// </summary>
        /// <value>
        /// The name of the property.
        /// </value>
        public String PropertyName { get; set; }

        /// <summary>
        /// Gets or sets the value1 of one ( left panel) hardware version
        /// </summary>
        /// <value>
        /// The value1.
        /// </value>
        public String Value1 { get; set; }

        /// <summary>
        /// Gets or sets the value2 of the second ( right panel) hardware version
        /// </summary>
        /// <value>
        /// The value2.
        /// </value>
        public String Value2 { get; set; }

        public bool HasDifferences
        {
            get { return Value1 != Value2; }
        }
    }
}