Пример #1
0
 public override void Remove(MachinePart component)
 {
     _children.Remove(component);
 }
Пример #2
0
 public override void Remove(MachinePart c)
 {
     Console.WriteLine("Cannot remove from a Unit");
 }
Пример #3
0
 public override void Add(MachinePart component)
 {
     _children.Add(component);
 }
Пример #4
0
 public override void Add(MachinePart c)
 {
     Console.WriteLine("Cannot add to a Unit");
 }