예제 #1
0
 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();
     }
 }
예제 #2
0
 public void CreateShape(Shape Shape)
 {
     ShapesRepository.Add(Shape);
     SaveShape();
 }