public void WriteXml(XmlWriter writer)
 {
     writer.WriteElementString("issue_to_id", IssueToId.ToString());
     writer.WriteElementString("relation_type", Type.ToString());
     if (Type == IssueRelationType.precedes || Type == IssueRelationType.follows)
     {
         writer.WriteIfNotDefaultOrNull(Delay, "delay");
     }
 }
Пример #2
0
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteElementString(RedmineKeys.ISSUE_TO_ID, IssueToId.ToString());
     writer.WriteElementString(RedmineKeys.RELATION_TYPE, Type.ToString());
     if (Type == IssueRelationType.precedes || Type == IssueRelationType.follows)
     {
         writer.WriteValueOrEmpty(Delay, RedmineKeys.DELAY);
     }
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="writer"></param>
 public override void WriteXml(XmlWriter writer)
 {
     writer.WriteElementString(RedmineKeys.ISSUE_TO_ID, IssueToId.ToString(CultureInfo.InvariantCulture));
     writer.WriteElementString(RedmineKeys.RELATION_TYPE, Type.ToString());
     if (Type == IssueRelationType.Precedes || Type == IssueRelationType.Follows)
     {
         writer.WriteValueOrEmpty(RedmineKeys.DELAY, Delay);
     }
 }