Beispiel #1
0
        public void RemoveComponent(IBusComponent component)
        {
            int index = components.IndexOf(component);

            if (index < 0)
            {
                return;
            }

            componentRanges.RemoveAt(index);
            components.RemoveAt(index);
        }
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="component">
 /// The component.
 /// </param>
 public void Register(IBusComponent component)
 {
     this.components.Add(component);
 }
Beispiel #3
0
 public void AddComponent(IBusComponent component, BusAddressRange addressRange)
 {
     componentRanges.Add(addressRange);
     components.Add(component);
 }