39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace FSI.Lib.Guis.Folder.Mgt
|
|
{
|
|
public interface IInterface
|
|
{
|
|
string Plant { get; set; }
|
|
string SubPlant { get; set; }
|
|
string Name { get; set; }
|
|
string Description { get; set; }
|
|
string Path { get; set; }
|
|
}
|
|
|
|
public struct Model : IInterface
|
|
{
|
|
private string _plant;
|
|
private string _subPlant;
|
|
private string _name;
|
|
private string _description;
|
|
private string _path;
|
|
public string Plant { get => _plant; set => _plant = value; }
|
|
public string SubPlant { get => _subPlant; set => _subPlant = value; }
|
|
public string Name { get => _name; set => _name = value; }
|
|
public string Description { get => _description; set => _description = value; }
|
|
public string Path { get => _path; set => _path = value; }
|
|
public string DescriptionDtl { get => _plant + " " + SubPlant + " " + Description; }
|
|
}
|
|
|
|
public interface IDataProvider
|
|
{
|
|
IEnumerable<Model> Load(IEnumerable<IInterface> datas);
|
|
}
|
|
}
|