コード例 #1
0
 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());
     }
 }
コード例 #2
0
    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);
    }