Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
		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);
		}
Ejemplo n.º 3
0
        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);
        }