示例#1
0
文件: MainWindow.cs 项目: cgt/Notes
		protected void OnSaveNewNoteBtnClicked(object sender, EventArgs e)
		{
			string title = newNoteTitle.Text;
			string content = newNoteField.Buffer.Text;
			var n = new Note(title, content);
			noteStore.AddNode(new NoteNode(n));

			nb.CurrentPage = 0;
			ResetNewNotePage();
		}
示例#2
0
文件: NoteNode.cs 项目: cgt/Notes
		public NoteNode(Note note)
		{
			this.Note = note;
		}