aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/DemoMode/DemoModeCommand.cs
blob: abb7b25e6bc9e1286a736697f135dea0ffc1aa41 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;

namespace Tango.FSE.Common.DemoMode
{
    public class DemoModeCommand
    {
        public String Name { get; set; }
        public String Description { get; set; }
        public RelayCommand Command { get; set; }

        public static DemoModeCommand Create(Action action, String name, String description)
        {
            return new DemoModeCommand()
            {
                Command = new RelayCommand(action),
                Name = name,
                Description = description
            };
        }
    }
}