aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Storage/SingleStorageResult.cs
blob: 0b63aa03011ee92b503ed8ec683d9a6fc92ea214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.FSE.Common.Storage
{
    public class SingleStorageResult : IStorageResult
    {
        public String SelectedItem { get; set; }
        public bool Confirmed { get; set; }

        public static implicit operator bool(SingleStorageResult result)
        {
            return result.SelectedItem != null && result.Confirmed;
        }
    }
}