public INotebook NewNotebook() { var nb = new TextNotebook(_notebookFolder, string.Empty); var note = nb.NewNote(); note.Title = "[New note]"; note.Content = "[Note content]"; return(nb); }
/// <summary> /// Initializes a new instance of the <see cref="TextNote" /> class. /// </summary> /// <param name="notebook">The notebook.</param> /// <param name="createdDate">The created date.</param> /// <param name="lastUpdateDate">The last update date.</param> /// <param name="title">The title.</param> /// <param name="content">The content.</param> /// <param name="tags">The tags.</param> public TextNote(TextNotebook notebook, DateTime createdDate, DateTime lastUpdateDate, string title, string content, IEnumerable <String> tags) { _notebook = notebook; _createdDate = createdDate; _lastUpdate = lastUpdateDate; _title = title; _content = content; _tags.AddRange(tags); State = NoteState.New; }
/// <summary> /// Initializes a new instance of the <see cref="TextNote"/> class. /// </summary> public TextNote(TextNotebook notebook) { _notebook = notebook; State = NoteState.New; }