public AddProjects(ICruiseProjectManagerFactory cruiseProjectManagerFactory,
                           ICruiseServerManagerFactory cruiseServerManagerFactory,
                           CCTrayProject[] currentProjectList)
        {
            this.cruiseProjectManagerFactory = cruiseProjectManagerFactory;
            this.cruiseServerManagerFactory  = cruiseServerManagerFactory;
            this.currentProjectList          = currentProjectList;

            InitializeComponent();

            List <BuildServer> serverList = new List <BuildServer>();

            foreach (CCTrayProject project in currentProjectList)
            {
                if (!serverList.Contains(project.BuildServer))
                {
                    serverList.Add(project.BuildServer);
                }
            }

            foreach (BuildServer server in serverList)
            {
                AddServer(server);
            }
        }
        public CCTrayMultiConfiguration(ICruiseServerManagerFactory cruiseServerManagerFactory,
                                        ICruiseProjectManagerFactory cruiseProjectManagerFactory, string configFileName)
        {
            this.cruiseServerManagerFactory  = cruiseServerManagerFactory;
            this.cruiseProjectManagerFactory = cruiseProjectManagerFactory;
            this.configFileName = configFileName;
            serverManagersList  = new Dictionary <BuildServer, ICruiseServerManager>();

            ReadConfigurationFile(configFileName);
        }
        public CCTrayMultiConfiguration(ICruiseServerManagerFactory cruiseServerManagerFactory,
            ICruiseProjectManagerFactory cruiseProjectManagerFactory, string configFileName)
        {
            this.cruiseServerManagerFactory = cruiseServerManagerFactory;
            this.cruiseProjectManagerFactory = cruiseProjectManagerFactory;
            this.configFileName = configFileName;
            serverManagersList = new Dictionary<BuildServer, ICruiseServerManager>();

            ReadConfigurationFile(configFileName);
        }
		public AddProjects(ICruiseProjectManagerFactory cruiseProjectManagerFactory,
            ICruiseServerManagerFactory cruiseServerManagerFactory,
            CCTrayProject[] currentProjectList)
		{
			this.cruiseProjectManagerFactory = cruiseProjectManagerFactory;
            this.cruiseServerManagerFactory = cruiseServerManagerFactory;
			this.currentProjectList = currentProjectList;

			InitializeComponent();

            List<BuildServer> serverList = new List<BuildServer>();
			foreach (CCTrayProject project in currentProjectList)
			{
                if (!serverList.Contains(project.BuildServer)) serverList.Add(project.BuildServer);
		}

            foreach (BuildServer server in serverList)
		{
                AddServer(server);
			}
		}