Example #1
0
 public void UpdateArticle(WikiArticle article)
 {
     string ret = fbCommand("editArticle",
                            "ixWikiPage=" + article.ID.ToString(),
                            "sBody=" + article.Body,
                            "sHeadline=" + article.Headline);
 }
Example #2
0
        public void TestWikiEdit()
        {
            FogBugz     fb = Login();
            WikiArticle wa = fb.ViewArticle(333333);

            wa.Body += " Edit last " + DateTime.Now.ToLongDateString();
            fb.UpdateArticle(wa);
        }
Example #3
0
        public WikiArticle ViewArticle(int ID)
        {
            string ret = fbCommand("viewArticle", "ixWikiPage=" + ID.ToString());

            XmlDocument doc = xmlDoc(ret);

            WikiArticle wa = new WikiArticle();

            wa.ID       = ID;
            wa.Headline = doc.SelectSingleNode("//sHeadline").InnerText;
            wa.Body     = doc.SelectSingleNode("//sBody").InnerText;
            return(wa);
        }
Example #4
0
        public WikiArticle ViewArticle(int ID)
        {
            string ret = fbCommand("viewArticle", "ixWikiPage=" + ID.ToString());

            XmlDocument doc = xmlDoc(ret);

            WikiArticle wa = new WikiArticle();
            wa.ID = ID;
            wa.Headline = doc.SelectSingleNode("//sHeadline").InnerText;
            wa.Body = doc.SelectSingleNode("//sBody").InnerText;
            return wa;
        }
Example #5
0
 public void UpdateArticle(WikiArticle article)
 {
     string ret = fbCommand("editArticle",
         "ixWikiPage=" + article.ID.ToString(),
         "sBody=" + article.Body,
         "sHeadline=" + article.Headline);
 }