Пример #1
0
 void HandleNodeDeleted(object sender, TreeNodeChildEventArgs e)
 {
     if (e.Node == null)
     {
         adapter.EmitRowDeleted(new Gtk.TreePath(new int[] { e.ChildIndex }));
     }
     else
     {
         Gtk.TreeIter it  = IterFromNode(e.Node);
         var          p   = GetPath(it);
         int[]        idx = new int [p.Indices.Length + 1];
         p.Indices.CopyTo(idx, 0);
         idx [idx.Length - 1] = e.ChildIndex;
         adapter.EmitRowDeleted(new Gtk.TreePath(idx));
     }
 }
Пример #2
0
        void HandleRowDeleted(object sender, ListRowEventArgs e)
        {
            var p = new Gtk.TreePath(new int[] { e.Row });

            adapter.EmitRowDeleted(p);
            parent.QueueResize();
        }