Exemple #1
0
 public NoteData ToData()
 {
     return(new NoteData()
     {
         BackgroundColor = BackgroundColor,
         DateCreated = Name.DateCreated,
         Name = Name.Name,
         DateLastModified = Name.DateLastModified,
         DateLastOpened = Name.DateLastOpened,
         Description = Name.Description,
         Id = Id,
         LineELementIds = LineElements.Select(l => l.Id).ToArray(),
         StrokeIds = Strokes.Select(s => s.Id).ToArray(),
         TextELementIds = TextElements.Select(t => t.Id).ToArray(),
     });
 }