private void DeleteButtonClicked(object obj, EventArgs args) { if (view.NodeSelection.SelectedNode != null) { NoteTreeNode selected = (NoteTreeNode)view.NodeSelection.SelectedNode; store.RemoveNode(selected); clientActivated.DeleteRecord(selected.GetNote()); } }
private void NoteContentEdited(object o, Gtk.EditedArgs args) { Logger.Write("content edited"); NoteTreeNode node = store.GetNode(new TreePath(args.Path)) as NoteTreeNode; Note note = node.GetNote(); note.content = args.NewText; clientActivated.UpdateRecord(note); }