예제 #1
0
        public Note(string title, Checklist 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, Checklist checklist, NoteImages 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;
 }