aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Test/Resources/template.csx
blob: 524b1bb24a928aa4e00002745c2fda0d2c2441f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Threading;
using System.Threading.Tasks;
using Tango.Scripting.Basic;

public class Program
{
    public object OnExecute(IContext context)
    {


        return new
        {
            Item1 = "1",
            Item2 = "2"
        };
    }
}
hlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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 HardwareCompareResult contains collection of HardwareComponentCollectionCompareResult
    /// </summary>
    /// <seealso cref="Tango.MachineStudio.HardwareDesigner.Comparison.IHasDifference" />
    public class HardwareCompareResult: IHasDifference
    {
        /// <summary>
        /// Gets or sets the collections.
        /// </summary>
        /// <value>
        /// The collections.
        /// </value>
        public SynchronizedObservableCollection<HardwareComponentCollectionCompareResult> Collections { get; set; }

        public bool HasDifferences
        {
            get
            {
                return Collections.Any(item => item.HasDifferences);
            }
        }

        public HardwareCompareResult()
        {
            Collections = new SynchronizedObservableCollection<HardwareComponentCollectionCompareResult>();
        }
    }
}