Exemple #1
0
        public virtual void WriteXml(System.Xml.XmlWriter writer)
        {
            //questions
            writer.WriteStartElement("Call");
            writer.WriteAttributeInt("QuCurrentID", Question.CurrentID);
            writer.WriteAttributeInt("AnCurrentID", Answer.CurrentID);

            writer.WriteStartElement("Questions");
            foreach (Question question in Questions)
            {
                writer.WriteStartElement("Question");
                question.WriteXml(writer);
                writer.WriteEndElement();
            }
            writer.WriteEndElement();
            //answers
            writer.WriteStartElement("Answers");

            foreach (Answer answer in Answers)
            {
                writer.WriteStartElement("Answer");
                answer.WriteXml(writer);

                writer.WriteEndElement();
            }
            writer.WriteEndElement();
            writer.WriteEndElement();
        }
Exemple #2
0
        public virtual void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteAttributeInt("ID", ID);
            writer.WriteAttributeString("Name", Name);
            writer.WriteAttributeInt("Number", Number);
            writer.WriteAttributeDouble("Height", Height);
            writer.WriteAttributeDouble("Weight", Weight);
            writer.WriteAttributeString("DominantHand", MydominantHand.ToString());
            writer.WriteAttributeString("Appearance", Myappearance.ToString());

            writer.WriteAttributeString("Note", Note);
        }
Exemple #3
0
        public virtual void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteStartElement("Team");

            writer.WriteAttributeInt("ID", ID);
            writer.WriteAttributeString("Name", Name);
            writer.WriteAttributeInt("PlayerCurrentID", Player.CurrentID);
            //jersey color
            writer.WriteStartElement("ColorSet");
            writer.WriteAttributeString("Name", "HelmetColorSet");
            HelmetColorSet.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("ColorSet");
            writer.WriteAttributeString("Name", "HomeJerseyColorSet");
            HomeJerseyColorSet.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("ColorSet");
            writer.WriteAttributeString("Name", "AwayJerseyColorSet");
            AwayJerseyColorSet.WriteXml(writer);
            writer.WriteEndElement();
            //players
            writer.WriteStartElement("Players");
            foreach (Player player in Players)
            {
                writer.WriteStartElement("Player");
                player.WriteXml(writer);
                writer.WriteEndElement();
            }

            writer.WriteEndElement();
            //Lineup
            writer.WriteStartElement("PositionSetting");
            LineupSetting.WriteXml(writer);

            writer.WriteEndElement();


            writer.WriteEndElement();
        }
Exemple #4
0
 public virtual void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteAttributeInt("ID", ID);
     writer.WriteAttributeString("Name", Name);
     writer.WriteStartElement("Items");
     foreach (Item item in Items)
     {
         writer.WriteStartElement("Item");
         item.WriteXml(writer);
         writer.WriteEndElement();
     }
     writer.WriteEndElement();
 }
Exemple #5
0
        public void Save(XmlWriter writer)
        {
            writer.WriteAttributeString("file", File);
            writer.WriteAttributeBool("followtail", FollowTail);
            writer.WriteAttributeBool("showlinenumbers", ShowLineNumbers);
            writer.WriteAttributeString("searchterm", SearchTerm);
            writer.WriteAttributeEnum("levelfilter", LevelFilter);
            writer.WriteAttributeBool("colorbylevel", ColorByLevel);
            writer.WriteAttributeInt("visibleentryindex", (int) VisibleLogLine);
            writer.WriteAttributeGuid("id", Id);
            writer.WriteAttributeGuid("parentid", ParentId);
            writer.WriteAttributeDateTime("lastviewed", LastViewed);
            writer.WriteAttributeDouble("horizontaloffset", HorizontalOffset);

            writer.WriteStartElement("activatedquickfilters");
            foreach (Guid guid in ActivatedQuickFilters)
            {
                writer.WriteStartElement("quickfilter");
                writer.WriteAttributeGuid("id", guid);
                writer.WriteEndElement();
            }
            writer.WriteEndElement();
        }
Exemple #6
0
 public virtual void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteAttributeInt("ID", ID);
     writer.WriteAttributeString("Content", Content);
 }