Beispiel #1
0
 public void Add(string typeName, Shape shape, Color color)
 {
     if (!_animalsRedering.ContainsKey(typeName))
     {
         AnimalsTypeRendering newtype = new AnimalsTypeRendering(shape, color);
         _animalsRedering.Add(typeName, newtype);
     }
     else
     {
         _animalsRedering[typeName].ChangeColor = color;
         _animalsRedering[typeName].Shape       = shape;
     }
 }
 public void Add(string typeName, string figure, Color color)
 {
     if (!_animalsRedering.ContainsKey(typeName))
     {
         AnimalsTypeRendering newtype = new AnimalsTypeRendering(figure, color);
         _animalsRedering.Add(typeName, newtype);
     }
     else
     {
         _animalsRedering[typeName].ChangeColor = color;
         _animalsRedering[typeName].Figure      = figure;
     }
 }