aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Procedures/Dialogs/ResultGridViewVM.cs
blob: 54c6069624d99f2faacf4226b84ec5ba6c236982 (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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.FSE.Common;

namespace Tango.FSE.Procedures.Dialogs
{
    public class ResultGridViewVM : FSEDialogViewVM
    {
        public Result Result { get; set; }

        public List<Object> Items { get; set; }

        public ResultGridViewVM(Result result) : base()
        {
            CanCancel = false;
            OKText = "CLOSE";

            Result = result;
            Items = new List<object>();

            foreach (var item in Result.Value as IEnumerable)
            {
                Items.Add(item);
            }
        }
    }
}