コード例 #1
0
 void OnSaveButtonClicked(object sender, EventArgs args)
 {
     Note note = new Note
     {
         Title = entry.Text,
         Text = editor.Text
     };
     note.Save(FILENAME);
     loadButton.IsEnabled = true;
 }
コード例 #2
0
 void OnLoadButtonClicked(object sender, EventArgs args)
 {
     Note note = new Note();
     note.Load(FILENAME);
     entry.Text = note.Title;
     editor.Text = note.Text;
 }