public List <IProject> GetProjects()
        {
            List <IProject> projects      = new List <IProject>();
            string          projectsAsXML = GETResponseFrom(PROJECTLISTURL);

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(projectsAsXML);

            XmlNodeList projectNodes = doc.SelectNodes("/projects/project");

            foreach (XmlNode projectNode in projectNodes)
            {
                IProject proj = new YouTrackProject()
                {
                    ID = projectNode.Attributes["shortName"].Value, Name = projectNode.Attributes["name"].Value
                };
                if (projectNode.Attributes["description"] != null)
                {
                    proj.Description = projectNode.Attributes["description"].Value;
                }
                projects.Add(proj);
            }            //end foreach

            return(projects);
        }
 public ActiveProjectChangedEvent(YouTrackProject activeProject, YouTrackProject previousProject)
 {
     PreviousProject = previousProject;
     ActiveProject   = activeProject;
 }