1
0

Create ShapeContainer.cs

This commit is contained in:
2026-02-26 01:12:09 +03:00
parent 534203855d
commit bc98100b24

View File

@@ -0,0 +1,13 @@
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);
}
}