public ServersSettingsController(ServerListControl serverListControl,
            ProjectListControl projectListControl,
            BarStaticItem statusTextItem, 
            BarEditItem statusProgressItem)
        {
            this.serverListControl = serverListControl;
            this.projectListControl = projectListControl;
            this.statusTextItem = statusTextItem;
            this.statusProgressItem = statusProgressItem;

            configurationService = (ConfigurationService)ContextRegistry.GetContext().GetObject("ConfigurationService");
            jenkinsService = (JenkinsService)ContextRegistry.GetContext().GetObject("JenkinsService");
            serverListControl.ConfigurationService = configurationService;
            projectListControl.ConfigurationService = configurationService;
            projectListControl.JenkinsService = jenkinsService;
        }
Beispiel #2
0
        public ServersSettingsController(ServerListControl serverListControl,
                                         ProjectListControl projectListControl,
                                         BarStaticItem statusTextItem,
                                         BarEditItem statusProgressItem)
        {
            this.serverListControl  = serverListControl;
            this.projectListControl = projectListControl;
            this.statusTextItem     = statusTextItem;
            this.statusProgressItem = statusProgressItem;

            configurationService = (ConfigurationService)ContextRegistry.GetContext().GetObject("ConfigurationService");
            jenkinsService       = (JenkinsService)ContextRegistry.GetContext().GetObject("JenkinsService");
            serverListControl.ConfigurationService  = configurationService;
            projectListControl.ConfigurationService = configurationService;
            projectListControl.JenkinsService       = jenkinsService;
        }