public OutputWindow(Note note, OutputType outputType) { Note = note; OutputType = outputType; InitializeComponent(); }
/// <summary> /// Adds a note, sets it to the current note, and gives focus to the text box. /// </summary> /// <param name="note">The note to add.</param> private void AddNote(Note note) { Notes.Add(note); CurrentNote = note; CurrentNote.Save(); noteRichTextBox.Focus(); }