public bool UnregisterComponent(IMorphComponent component) { if (Components.Contains(component)) { Components.Remove(component); } WhenComponentUnregistered?.Invoke(this, component); return(true); }
public bool RegisterComponent(IMorphComponent component) { if (!Components.Contains(component)) { Components.Add(component); } WhenComponentRegistered?.Invoke(this, component); //Accept the application as a visitor component.Accept(this); return(true); }
public void Visit(IMorphComponent component) { }