コード例 #1
0
ファイル: Note.cs プロジェクト: reddenx/web_notes
 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(),
     });
 }