blob: 3ea277bf8e333c3d7d0bb77d474cbf91799e9783 (
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
45
46
47
48
|
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Drawing;
using Google.Protobuf;
using Tango.BL.Entities;
using Tango.BL.Enumerations;
using Tango.PMR.Stubs;
using Tango.PMR.Diagnostics;
using Tango.FSE.Common.Connection;
using Tango.FSE.Common.Diagnostics;
using Tango.FSE.Procedures;
namespace Tango.FSE.Procedures.Examples.RequestUserInputFor
{
#region Example
public enum PersonType
{
Student = 0,
Employee = 1,
Guest = 2
}
public class Person
{
public int Age;
public String name;
public bool Activated;
public PersonType Type = PersonType.Employee;
}
public class Program
{
public void OnExecute(IProcedureContext context)
{
Person p = context.RequestUserInputFor<Person>("Input Demo", "Please fill in the form");
context.WriteLine(p);
}
}
#endregion
}
|