Options for primitive series in limit curves were added
This commit is contained in:
25
StructureHelperCommon/Models/Parameters/NamedCollection.cs
Normal file
25
StructureHelperCommon/Models/Parameters/NamedCollection.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Parameters
|
||||
{
|
||||
public class NamedCollection<T> : ISaveable
|
||||
{
|
||||
public Guid Id { get; }
|
||||
public string Name { get; set; }
|
||||
public List<T> Collection { get; set; }
|
||||
public NamedCollection(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
Name = string.Empty;
|
||||
Collection = new List<T>();
|
||||
}
|
||||
public NamedCollection() : this(Guid.NewGuid())
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
22
StructureHelperCommon/Models/Parameters/NamedValue.cs
Normal file
22
StructureHelperCommon/Models/Parameters/NamedValue.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StructureHelperCommon.Models.Parameters
|
||||
{
|
||||
public class NamedValue<T> : ISaveable
|
||||
{
|
||||
public Guid Id { get; }
|
||||
public string Name { get; set; }
|
||||
public T Value { get; set; }
|
||||
public NamedValue(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
public NamedValue() : this (Guid.NewGuid())
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user