Exemple #1
0
 public void GetTfsElements(int nId)
 {
     ProjectTitle =
         XmlOperations.GetXmlElements(projectelement + nId + "']/title", true);
     TfsServerUrl =
         XmlOperations.GetXmlElements(projectelement + nId + "']/tfvc/serverurl", true);
     TfsProjectName =
         XmlOperations.GetXmlElements(projectelement + nId + "']/tfvc/name", true);
     TfsUsername =
         XmlOperations.GetXmlElements(
             projectelement + nId + "']/tfvc/networkcredential/username", true);
     TfsHistory =
         XmlOperations.GetXmlElements(projectelement + nId + "']/tfvc/history").ToLower();
     //
     HtmlFolder =
         XmlOperations.GetXmlElements(projectelement + nId + "']/html/htmlfolder", true).ToLower();
     HtmlFolder  = (HtmlFolder.Substring(HtmlFolder.Length - 1) == @"\") ? HtmlFolder : HtmlFolder + @"\";
     LocalFolder =
         XmlOperations.GetXmlElements(projectelement + nId + "']/localfolder", true).ToLower();
     LocalFolder = (LocalFolder.Substring(LocalFolder.Length - 1) == @"\") ? LocalFolder : LocalFolder + @"\";
     DeleteFiles =
         XmlOperations.GetXmlElements(projectelement + nId + "']/deletefiles").ToLower();
     DeleteFiles = (DeleteFiles == "") ? "false" : DeleteFiles;
     Language    =
         XmlOperations.GetXmlElements(projectelement + nId + "']/language", true).ToLower();
     Extensions =
         XmlOperations.GetXmlElements(projectelement + nId + "']/extension", true).ToLower().Split('|');
     ProgrammingLanguage =
         XmlOperations.GetXmlElements(projectelement + nId + "']/programminglanguage", true).ToLower();
 }
Exemple #2
0
 public void GetLocalElements(int nId)
 {
     ProjectTitle =
         XmlOperations.GetXmlElements(projectelement + nId + "']/title", true);
     HtmlFolder =
         XmlOperations.GetXmlElements(projectelement + nId + "']/html/htmlfolder", true).ToLower();
     HtmlFolder  = (HtmlFolder.Substring(HtmlFolder.Length - 1) == @"\") ? HtmlFolder : HtmlFolder + @"\";
     LocalFolder =
         XmlOperations.GetXmlElements(projectelement + nId + "']/localfolder", true).ToLower();
     LocalFolder = (LocalFolder.Substring(LocalFolder.Length - 1) == @"\") ? LocalFolder : LocalFolder + @"\";
     DeleteFiles =
         XmlOperations.GetXmlElements(projectelement + nId + "']/deletefiles").ToLower();
     DeleteFiles = (DeleteFiles == "") ? "false" : DeleteFiles;
     Language    =
         XmlOperations.GetXmlElements(projectelement + nId + "']/language", true).ToLower();
     Extensions =
         XmlOperations.GetXmlElements(projectelement + nId + "']/extension", true).ToLower().Split('|');
     ProgrammingLanguage =
         XmlOperations.GetXmlElements(projectelement + nId + "']/programminglanguage", true).ToLower();
 }