コード例 #1
0
ファイル: FormsActivity.cs プロジェクト: UNOPS/uimf-android
        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
            };
        }
コード例 #2
0
        private void RegisterManagers()
        {
            this.InputManager = new InputManagerCollection();
            this.InputManager.RegisterAssembly(typeof(TextInput).Assembly);

            this.OutputManager = new OutputManagerCollection();
            this.OutputManager.RegisterAssembly(typeof(TextOutput).Assembly);

            this.EventManager = new EventHandlerManagerCollection();
            this.EventManager.RegisterAssembly(typeof(BindToOutputEventHandler).Assembly);
        }