14 lines
433 B
C#
14 lines
433 B
C#
namespace DrawFigureLibrary
|
|
{
|
|
public static class ShapeContainer
|
|
{
|
|
public static List<Figure> FigureList { get; } = new List<Figure>();
|
|
|
|
public static void AddFigure(Figure fig) => FigureList.Add(fig);
|
|
|
|
public static bool RemoveFigure(Figure fig) => FigureList.Remove(fig);
|
|
|
|
public static Figure? FindByName(string name) => FigureList.FirstOrDefault(f => f.Name == name);
|
|
}
|
|
}
|