Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7d1dec74aThis file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections.Generic;
using System.Linq;
namespace ScanMaster.Database.Objects
{
public class Function : SelectableDataItem
{
public uint Order { get; private set; }
public List<uint> LinkedFunctionIDs { get; private set; }
public Function(DRBDatabase parentDb, uint id, uint moduleTypeId, uint nameId, uint moduleMenuId, uint order)
{
database = parentDb;
ID = id;
NameID = nameId;
ModuleMenuID = moduleMenuId;
Order = order;
LinkedFunctionIDs = new List<uint>();
}
List<Function> linkedFunctions = null;
public List<Function> LinkedFunctions
{
get
{
return linkedFunctions ?? (linkedFunctions = LinkedFunctionIDs.Select(ID => database.GetFunctionByID(ID)).ToList());
}
}
}
}