aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/ICodeObject.cs
blob: 04423581314d440b86a11f0d9bc3f5c7e3febb6e (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.CodeGeneration
{
    /// <summary>
    /// Represents a code object.
    /// </summary>
    public interface ICodeObject
    {
        /// <summary>
        /// Generates the code represented by this code object.
        /// </summary>
        String GenerateCode();

        /// <summary>
        /// Gets the template associated with this code object.
        /// </summary>
        String GetTemplate();
    }
}
Name). /// </summary> public @(prop.Type) @(prop.Name) { get { return _@(prop.Name.ToLower()); } set { _@(prop.Name.ToLower()) = value; RaisePropertyChanged(nameof(@(prop.Name))); } } private ICollectionView _@(prop.Name.ToLower())ViewSource; /// <summary> /// Gets or sets the @(prop.Name) View Source. ///</summary> public ICollectionView @(prop.Name)ViewSource { get { return _@(prop.Name.ToLower())ViewSource; } set { _@(prop.Name.ToLower())ViewSource = value; RaisePropertyChanged(nameof(@(prop.Name)ViewSource)); } } </div> } /// <summary> /// Initialize collection sources. /// </summary> public void InitCollectionSources() { @foreach (var prop in Model.Properties) { <div> @(prop.Name)ViewSource = CreateCollectionView(@(prop.Name)); </div> } } } }