Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }