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); }
public void AddComponent(IBusComponent component, BusAddressRange addressRange) { componentRanges.Add(addressRange); components.Add(component); }