示例#1
0
        public Note(string title, List <ChecklistItem> checklist, NoteColor color = null) : this()
        {
            this.title = title;
            this.text  = "";
            this.color = color is NoteColor ? color : NoteColor.DEFAULT;

            this.isChecklist = true;
            this.checklist   = checklist;
        }
示例#2
0
        internal Note(string id, string title, string text, List <ChecklistItem> checklist, List <NoteImage> images, NoteColor color, DateTime?createdAt, DateTime?updatedAt, DateTime?archivedAt) : this()
        {
            this.isChecklist = checklist != null && checklist.Count > 0;

            this.id         = id;
            this.title      = title;
            this.text       = this.isChecklist ? "" : text;
            this.checklist  = checklist;
            this.images     = images;
            this.color      = color is NoteColor ? color : NoteColor.DEFAULT;
            this.createdAt  = createdAt;
            this.updatedAt  = updatedAt;
            this.archivedAt = archivedAt;
        }
示例#3
0
 public Note(string title, string text = "", NoteColor color = null) : this()
 {
     this.title = title;
     this.text  = text;
     this.color = color is NoteColor ? color : NoteColor.DEFAULT;
 }