public static void Register() { if (_registered) return; _registered = true; var mouseControl = new MouseControl(); DependencyInjection.Register((IMouseInput)mouseControl); DependencyInjection.Register((IMouseComponent)mouseControl); DependencyInjection.Register((IMouseDrawer)new MouseDrawer(mouseControl)); }
public static void Register() { if (_registered) { return; } _registered = true; var mouseControl = new MouseControl(); DependencyInjection.Register((IMouseInput)mouseControl); DependencyInjection.Register((IMouseComponent)mouseControl); DependencyInjection.Register((IMouseDrawer) new MouseDrawer(mouseControl)); }