Ejemplo n.º 1
0
        public override void Initialize()
        {
            Container.RegisterType<object, ConfigureAuthorisationView>(typeof (ConfigureAuthorisationView).Name);
            Container.RegisterType<ConfigurationAuthorisationViewModel>(typeof(ConfigurationAuthorisationViewModel).Name);

            var authorisationManager = new ModuleSettings()
            {
                ModuleName = ModuleName,
                ModuleImagePath = @"/DevelopmentInProgress.AuthorisationManager.WPF;component/Images/AuthorisationManager.png"
            };

            var authorisationGroup = new ModuleGroup()
            {
                ModuleGroupName = "Authorisation"
            };

            var configureAuthorisation = new ModuleGroupItem()
            {
                ModuleGroupItemName = "Configure Authorisation",
                TargetView = typeof (ConfigureAuthorisationView).Name,
                TargetViewTitle = "Configure Authorisation",
                ModuleGroupItemImagePath =
                    @"\DevelopmentInProgress.AuthorisationManager.WPF;component/Images/Users.png"
            };

            authorisationGroup.ModuleGroupItems.Add(configureAuthorisation);
            authorisationManager.ModuleGroups.Add(authorisationGroup);
            ModuleNavigator.AddModuleNavigation(authorisationManager);

            Logger.Log(String.Format("Initialize {0} Complete", ModuleName), Category.Info, Priority.None);
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            Container.RegisterType<Object, ExampleDocumentView>(typeof(ExampleDocumentView).Name);
            Container.RegisterType<ExampleDocumentViewModel>(typeof(ExampleDocumentViewModel).Name);
            Container.RegisterType<Object, ExampleDocumentMessagesView>(typeof(ExampleDocumentMessagesView).Name);
            Container.RegisterType<ExampleDocumentMessagesViewModel>(typeof(ExampleDocumentMessagesViewModel).Name);
            Container.RegisterType<Object, ExampleDocumentNavigationView>(typeof(ExampleDocumentNavigationView).Name);
            Container.RegisterType<ExampleDocumentNavigationViewModel>(typeof(ExampleDocumentNavigationViewModel).Name);
            Container.RegisterType<Object, CustomerRemediationView>(typeof(CustomerRemediationView).Name);
            Container.RegisterType<CustomerRemediationViewModel>(typeof(CustomerRemediationViewModel).Name);

            var moduleSettings = new ModuleSettings();
            moduleSettings.ModuleName = ModuleName;
            moduleSettings.ModuleImagePath = @"/DevelopmentInProgress.ExampleModule;component/Images/ExampleModule.png";

            var moduleGroup = new ModuleGroup();
            moduleGroup.ModuleGroupName = "Example Module";

            var exampleDocument = new ModuleGroupItem();
            exampleDocument.ModuleGroupItemName = "Document Example";
            exampleDocument.TargetView = typeof(ExampleDocumentView).Name;
            exampleDocument.TargetViewTitle = "Document Example";
            exampleDocument.ModuleGroupItemImagePath = @"/DevelopmentInProgress.ExampleModule;component/Images/DocumentEdit.png";

            var documentMessages = new ModuleGroupItem();
            documentMessages.ModuleGroupItemName = "Document Messages";
            documentMessages.TargetView = typeof(ExampleDocumentMessagesView).Name;
            documentMessages.TargetViewTitle = "Document Messages";
            documentMessages.ModuleGroupItemImagePath = @"/DevelopmentInProgress.ExampleModule;component/Images/DocumentMessages.png";

            var documentNavigation = new ModuleGroupItem();
            documentNavigation.ModuleGroupItemName = "Document Navigation";
            documentNavigation.TargetView = typeof(ExampleDocumentNavigationView).Name;
            documentNavigation.TargetViewTitle = "Document Navigation";
            documentNavigation.ModuleGroupItemImagePath = @"/DevelopmentInProgress.ExampleModule;component/Images/DocumentNavigation.png";

            moduleGroup.ModuleGroupItems.Add(exampleDocument);
            moduleGroup.ModuleGroupItems.Add(documentMessages);
            moduleGroup.ModuleGroupItems.Add(documentNavigation);

            var remediationWorkflowGroup = new ModuleGroup();
            remediationWorkflowGroup.ModuleGroupName = "Customer Remediation";

            var remediationWorkflow = new ModuleGroupItem();
            remediationWorkflow.ModuleGroupItemName = "Customer Remediation";
            remediationWorkflow.TargetView = typeof(CustomerRemediationView).Name;
            remediationWorkflow.TargetViewTitle = "Customer Remediation";
            remediationWorkflow.ModuleGroupItemImagePath = @"/DevelopmentInProgress.ExampleModule;component/Images/CustomerRemediation.png";

            remediationWorkflowGroup.ModuleGroupItems.Add(remediationWorkflow);

            moduleSettings.ModuleGroups.Add(moduleGroup);
            moduleSettings.ModuleGroups.Add(remediationWorkflowGroup);

            ModuleNavigator.AddModuleNavigation(moduleSettings);

            Logger.Log("Initialize DevelopmentInProgress.ExampleModule Complete", Category.Info, Priority.None);
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            Container.RegisterType<Object, NewDocumentView>(typeof(NewDocumentView).Name);
            Container.RegisterType<NewDocumentViewModel>(typeof(NewDocumentViewModel).Name);

            var moduleSettings = new ModuleSettings();
            moduleSettings.ModuleName = ModuleName;
            moduleSettings.ModuleImagePath = @"/DevelopmentInProgress.ModuleTemplate;component/Images/ModuleTemplate.png";

            var moduleGroup = new ModuleGroup();
            moduleGroup.ModuleGroupName = "Module Template";

            var newDocument = new ModuleGroupItem();
            newDocument.ModuleGroupItemName = "New Document";
            newDocument.TargetView = typeof(NewDocumentView).Name;
            newDocument.TargetViewTitle = "New Document";
            newDocument.ModuleGroupItemImagePath = @"/DevelopmentInProgress.ModuleTemplate;component/Images/NewDocument.png";

            moduleGroup.ModuleGroupItems.Add(newDocument);
            moduleSettings.ModuleGroups.Add(moduleGroup);
            ModuleNavigator.AddModuleNavigation(moduleSettings);

            Logger.Log("Initialize DevelopmentInProgress.ModuleTemplate Complete", Category.Info, Priority.None);
        }