public void SaveNote()
 {
     var note = new Note
                    {
                        Title = _view.Title,
                        NoteText = _view.NoteText
                    };
     _repository.Save(note);
     LoadNotes();
 }
        public void Save(Note note)
        {
            var file = Path.Combine(BaseDirectory, note.Title + ".note");

            File.WriteAllText(file, note.NoteText);
        }
        public void Delete(Note note)
        {
            var file = Path.Combine(BaseDirectory, note.Title + ".note");

            File.Delete(file);
        }