private void SaveasButtonEvent(object sender, RoutedEventArgs e) { IWritable cb = new NoteBook(); var content = new TextRange(MyText.Document.ContentStart, MyText.Document.ContentEnd).Text; cb.Saveas(content); }
private void OpenNoteBook_Click(object sender, RoutedEventArgs e) { ClearRichTextBox(); NoteBook nb = new NoteBook(); OpenFile(nb); NoteBookStyle(); }