Skip to content

Commit

Permalink
No more outputting originalVersion time in Fox header
Browse files Browse the repository at this point in the history
  • Loading branch information
NasaNhak committed Apr 30, 2017
1 parent 416bae1 commit 3b69274
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions FoxTool/Fox/FoxFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class FoxFile : IXmlSerializable
private readonly List<FoxStringLookupLiteral> _stringLookupLiterals;
private string _fileVersion = "0";
private string _formatVersion = "2";
private DateTime _originalVersion = DateTime.Now;


public FoxFile()
{
Expand Down Expand Up @@ -57,12 +57,7 @@ public string FileVersion
set { _fileVersion = value; }
}

public DateTime OriginalVersion
{
get { return _originalVersion; }
set { _originalVersion = value; }
}


public XmlSchema GetSchema()
{
return null;
Expand All @@ -76,7 +71,7 @@ public void ReadXml(XmlReader reader)
DateTime.TryParseExact(reader.GetAttribute("originalVersion"), "ddd MMM dd HH:mm:ss UTCzzz yyyy",
CultureInfo.InvariantCulture,
DateTimeStyles.None, out originalVersion);
OriginalVersion = originalVersion;


bool isEmptyElement = reader.IsEmptyElement;
reader.ReadStartElement("fox");
Expand Down Expand Up @@ -115,8 +110,7 @@ public void WriteXml(XmlWriter writer)
{
writer.WriteAttributeString("formatVersion", FormatVersion);
writer.WriteAttributeString("fileVersion", FileVersion);
writer.WriteAttributeString("originalVersion",
String.Format(CultureInfo.InvariantCulture, "{0:ddd MMM dd HH:mm:ss UTCzzz yyyy}", OriginalVersion));

writer.WriteStartElement("classes");
foreach (var foxClass in Classes)
{
Expand Down

0 comments on commit 3b69274

Please sign in to comment.