예제 #1
0
        private void RegisterManagers()
        {
            var inputManager = new InputManagerCollection();

            inputManager.RegisterAssembly(typeof(TextInput).Assembly);
            inputManager.RegisterAssembly(typeof(DynamicFormInput).Assembly);

            var outputManager = new OutputManagerCollection();

            outputManager.RegisterAssembly(typeof(TextOutput).Assembly);
            outputManager.RegisterAssembly(typeof(ObjectListOutput).Assembly);

            var eventManager = new EventHandlerManagerCollection();

            eventManager.RegisterAssembly(typeof(BindToOutputEventHandler).Assembly);

            var styleRegister = new StyleRegister();

            styleRegister.RegisterAssembly(typeof(TextViewStyle).Assembly);
            this.ManagersCollection = new ManagersCollection
            {
                InputManagerCollection        = inputManager,
                OutputManagerCollection       = outputManager,
                EventHandlerManagerCollection = eventManager,
                StyleRegister = styleRegister
            };
        }