コード例 #1
0
ファイル: Change.cs プロジェクト: steve-stanton/backsight
 /// <summary>
 /// Does this edit come after the supplied edit?
 /// </summary>
 /// <param name="that">The edit to compare with</param>
 /// <returns>True if this edit was performed after the supplied edit</returns>
 internal bool IsAfter(Change that)
 {
     return (this.m_Sequence > that.m_Sequence);
 }
コード例 #2
0
ファイル: Project.cs プロジェクト: steve-stanton/backsight
 /// <summary>
 /// Writes the data for some sort of change to this project's data folder.
 /// </summary>
 /// <param name="c">The change to write</param>
 internal void WriteChange(Change c)
 {
     string dataFolder = Path.Combine(m_Container.FolderName, m_Id.ToString().ToUpper());
     string dataFile = Path.Combine(dataFolder, ProjectDatabase.GetDataFileName(c.EditSequence));
     string changeText = EditSerializer.GetSerializedString<Change>(DataField.Edit, c);
     File.WriteAllText(dataFile, changeText);
 }