public void Create(List <string> arrCommands)
 {
     try
     {
         var shape = shapeSelector.Get(arrCommands);
         shapeRepository.Add(shape);
         logger.Log($"{shape.Name} created!");
     }
     catch (Exception ex)
     {
         logger.Log(ex.Message);
         ShowCommands();
     }
 }
Example #2
0
 public void CreateShape(Shape Shape)
 {
     ShapesRepository.Add(Shape);
     SaveShape();
 }