예제 #1
0
파일: Note.cs 프로젝트: jdvolz/VSOrganizer
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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());
        }
예제 #4
0
파일: Form1.cs 프로젝트: jdvolz/VSOrganizer
        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);
            }
        }