bool SelectedHandler() { ClassDescriptor klass; Clear(); selection = newSelection; if (selection == null || selection.Wrapped is ErrorWidget) { noSelection.Show(); return(false); } header.Show(); selection.Notify += Notified; klass = selection.ClassDescriptor; header.AttachObject(selection.Wrapped); AppendItemGroups(klass, selection.Wrapped); packingSelection = Stetic.Wrapper.Container.ChildWrapper(selection); if (packingSelection != null) { klass = packingSelection.ClassDescriptor; if (klass.ItemGroups.Count > 0) { AppendItemGroups(klass, packingSelection.Wrapped); packingSelection.Notify += Notified; } } return(false); }
public PropertyGrid () { header = new PropertyGridHeader (); header.Show (); PackStart (header, false, false, 0); Label lab = new Label (); lab.Markup = "<i>No selection</i>"; PackStart (lab, false, false, 0); noSelection = lab; Stetic.Registry.RegistryChanging += new EventHandler (OnRegistryChanging); }
public PropertyGrid() { header = new PropertyGridHeader(); header.Show(); PackStart(header, false, false, 0); Label lab = new Label(); lab.Markup = "<i>No selection</i>"; PackStart(lab, false, false, 0); noSelection = lab; Stetic.Registry.RegistryChanging += new EventHandler(OnRegistryChanging); }