Пример #1
0
        private void RetrieveListOfProjects(BuildServer server)
        {
            Cursor.Current = Cursors.WaitCursor;
            try
            {
                lbProject.Items.Clear();

                CCTrayProject[] projectList = cruiseProjectManagerFactory.GetProjectList(server, false);

                foreach (CCTrayProject project in projectList)
                {
                    if (!IsProjectAlreadyAdded(project))
                    {
                        lbProject.Items.Add(project.ProjectName);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, "Unable to connect to server " + server.DisplayName + ": " + ex.Message, "Error");
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
Пример #2
0
 private void ValidateConnection(BuildServer server)
 {
     cruiseProjectManagerFactory.GetProjectList(server, true);
 }