示例#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));
        }
示例#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));
        }