aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/Class.cshtml
blob: 693fe9136ec1a504228adc3b7cab83b97a4e5b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    @(Model.GetAttributesString())
    @(Model.GetModifierString()) class @(Model.Name) @(Model.InheritsFrom.Count > 0 ? " : " + String.Join(", ",Model.InheritsFrom) : null)
    {
        @foreach (var prop in Model.Properties)
        {
            <div>@prop.GenerateCode()</div>
        }

        @foreach (var dp in Model.DependencyProperties)
        {
            <div>@dp.GenerateCode()</div>
        }

        @foreach (var method in Model.Methods)
        {
            <div>@method.GenerateCode()</div>
        }
    }
">using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.Entities; using Tango.PMR.ThreadLoading; namespace Tango.Integration.Operation { public class ThreadLoadingConfirmationRequiredEventArgs : EventArgs { private Action<ProcessParametersTable> _confirm; public StartThreadLoadingResponse Status { get; set; } internal ThreadLoadingConfirmationRequiredEventArgs(Action<ProcessParametersTable> confirm) { _confirm = confirm; } public void Confirm(ProcessParametersTable processTable) { _confirm.Invoke(processTable); } } }