public void SaveXmlToPost() { string configPath = Environment.CurrentDirectory + "\\StudyList.xml"; if(!File.Exists(configPath)) { XElement slist = new XElement("StudyList"); slist.Save(configPath); } XmlDocument xmldoc = new XmlDocument(); xmldoc.Load(configPath); Post p = new Post(); p.title = "공부시간 리스트"; p.description = xmldoc.OuterXml; p.dateCreated = DateTime.Now; blog.editPost(postid, id, pw, p, false); }
public string newPost(string blogid, string username, string password, Post content, bool publish) { return (string)this.Invoke("newPost", new object[] { blogid, username, password, content, publish }); }
public bool editPost(string postid, string username, string password, Post content, bool publish) { return (bool)this.Invoke("editPost", new object[] { postid, username, password, content, publish }); }