예제 #1
0
 public static string serialize(NoteManager noteManager)
 {
     string ret = "";
     foreach (string note in noteManager.getNotes())
     {
         if (ret != "")
             ret += noteManager.getSplitter();
         ret += note;
     }
     return ret;
 }
예제 #2
0
 private void StickyForm_Load(object sender, EventArgs e)
 {
     nfManager = new NoteFileManager(Application.StartupPath + "/", "notes.data");
     List<string> notes = NoteHelper.deserialize(nfManager.getData(), splitter);
     if (notes.Count > 0)
         noteManager = new NoteManager(splitter, notes);
     else
     {
         noteManager = new NoteManager(splitter);
         noteManager.addNote("");
     }
     onNavigate();
 }