public string ToXML() { StringBuilder sb = new StringBuilder(); sb.Append("<Note>\n"); sb.AppendFormat("<Timestamp>{0:f}</Timestamp>\n", this.Timestamp); sb.AppendFormat("<Text>{0}</Text>\n", XMLExport.ReplaceEntities(this.Text)); sb.Append("</Note>\n"); return(sb.ToString()); }
public string ToXML() { StringBuilder sb = new StringBuilder(); sb.Append("<Project>\n"); sb.AppendFormat("<name>{0}</name>\n", XMLExport.ReplaceEntities(this.Name)); foreach (Note n in Notes) { sb.Append(n.ToXML()); } sb.Append("</Project>\n"); return(sb.ToString()); }
public string ToXML() { StringBuilder sb = new StringBuilder(); sb.Append("<ProjectList>\n"); sb.AppendFormat("<name>{0}</name>\n", XMLExport.ReplaceEntities(this.name)); foreach (Project p in projectList) { sb.Append(p.ToXML()); } sb.Append("</ProjectList>\n"); return(sb.ToString()); }
private void biMMExportToXML_Click(object sender, EventArgs e) { SaveFileDialog save = new SaveFileDialog(); save.DefaultExt = ".xml"; save.Filter = "XML | *.xml"; save.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); if (save.ShowDialog() == DialogResult.OK) { ProjectListManager[] managers = new ProjectListManager[3]; XMLExport.SaveToXML(save.FileName, Active, Waiting, Archive); } }