public static Note CreateExistingNote (NoteData data,
string filepath,
NoteManager manager)
{
if (data.CreateDate == DateTime.MinValue)
data.CreateDate = File.GetCreationTime (filepath);
if (data.ChangeDate == DateTime.MinValue)
data.ChangeDate = File.GetLastWriteTime (filepath);
return new Note (data, filepath, manager);
}