Пример #1
0
 public void LoadNote(NoteCard note)
 {
     titleText.Text = note.Title;
     noteText.Text = note.NoteText;
     createdText.Text = String.Format("{0}", note.CreateDate);
     editedText.Text = String.Format("{0}", note.EditDate);
 }
Пример #2
0
        public void Save(NoteCard note)
        {
            var file = Path.Combine(BaseDirectory, note.Title + ".note");

            File.WriteAllText(file, note.NoteText);
        }
Пример #3
0
        public void Delete(NoteCard note)
        {
            var file = Path.Combine(BaseDirectory, note.Title + ".note");

            File.Delete(file);
        }