Beispiel #1
0
 public virtual void Register(T peripheral, NumberRegistrationPoint <int> registrationPoint)
 {
     if (ChildCollection.ContainsKey(registrationPoint.Address))
     {
         throw new RegistrationException("The specified registration point is already in use.");
     }
     ChildCollection.Add(registrationPoint.Address, peripheral);
 }
Beispiel #2
0
 public override void Register(T peripheral, NumberRegistrationPoint <int> registrationPoint)
 {
     base.Register(peripheral, registrationPoint);
     machine.RegisterAsAChildOf(this, peripheral, registrationPoint);
 }