public HumanRightsViolationNode (HumanRightsViolation record) { HumanRightsViolation = record; Name = record.Name; Id = record.Id; }
static void walkThroughStore (HumanRightsViolation record, HumanRightsViolationNode parent) { foreach(HumanRightsViolation childRecord in record.Children) { if (childRecord.Children.Count == 0) parent.AddChild(new HumanRightsViolationNode(childRecord)); else { HumanRightsViolationNode subparent = new HumanRightsViolationNode(childRecord); walkThroughStore(childRecord, subparent); parent.AddChild(subparent); } } }
protected void OnNodeviewRowActivated (object o, Gtk.RowActivatedArgs args) { Gtk.NodeSelection selection = ((Gtk.NodeView)o).NodeSelection; Active = ((HumanRightsViolationNode)selection.SelectedNode).HumanRightsViolation; SetWidgets (); if (ViolationSelected != null) { ViolationSelected (Active, args); } }