Пример #1
0
 public Note(string title = "", string text = "", NoteColor color = null) : base()
 {
     this.Title       = title;
     this.Text        = text;
     this.Color       = color;
     this.IsChecklist = false;
 }
Пример #2
0
        public Note(string title, Checklist checklist, NoteColor color = null) : base()
        {
            this.Title = title;
            this.Text  = "";
            this.Color = color;

            this.IsChecklist = true;
            this.Checklist   = checklist;
        }
Пример #3
0
        internal Note(string id, string title, string text, Checklist checklist, NoteColor color, DateTime?createdAt, DateTime?updatedAt) : this()
        {
            this.id        = id;
            this.title     = title;
            this.text      = text;
            this.checklist = checklist;
            this.color     = color is NoteColor ? color : NoteColor.DEFAULT;
            this.createdAt = createdAt;
            this.updatedAt = updatedAt;

            this.isChecklist = checklist != null;
        }