2020-04-05 00:29:26 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2020-04-08 00:22:04 +02:00
|
|
|
namespace zero.Core.Entities
|
2020-04-05 00:29:26 +02:00
|
|
|
{
|
|
|
|
|
public class SectionCollection : List<ISection>
|
|
|
|
|
{
|
|
|
|
|
public void Add<T>() where T : ISection, new()
|
|
|
|
|
{
|
|
|
|
|
Add(new T());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Add(string alias, string name, string icon)
|
|
|
|
|
{
|
|
|
|
|
Add(new Section(alias, name, icon));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|