Inheritance: PropertyGridListItemProvider
Example #1
0
        private void AddChildren()
        {
            GridItem root = propertyGrid.RootGridItem;

            if (root == null)
            {
                return;
            }

            foreach (GridItem cat in root.GridItems)
            {
                if (cat is CategoryGridEntry && cat.GridItems != null && cat.GridItems.Count > 0)
                {
                    var catProvider = new PropertyGridCategoryProvider(this, view, (CategoryGridEntry)cat);
                    catProvider.Initialize();
                    children.Add(catProvider);
                    AddChildProvider(catProvider);
                }

                foreach (GridItem item in cat.GridItems)
                {
                    PropertyGridListItemProvider itemProvider
                        = (PropertyGridListItemProvider)GetNewItemProvider(
                              this, this, view, item);

                    itemProvider.Initialize();
                    children.Add(itemProvider);
                    AddChildProvider(itemProvider);
                }
            }
        }
Example #2
0
		private void AddChildren ()
		{
			GridItem root = propertyGrid.RootGridItem;
			if (root == null)
				return;
			
			foreach (GridItem cat in root.GridItems) {
				if (cat is CategoryGridEntry && cat.GridItems != null && cat.GridItems.Count > 0) {
					var catProvider = new PropertyGridCategoryProvider (this, view, (CategoryGridEntry)cat);
					catProvider.Initialize ();
					children.Add (catProvider);
					AddChildProvider (catProvider);
				}
				
				foreach (GridItem item in cat.GridItems) {
					PropertyGridListItemProvider itemProvider
						= (PropertyGridListItemProvider) GetNewItemProvider (
							this, this, view, item);

					itemProvider.Initialize ();
					children.Add (itemProvider);
					AddChildProvider (itemProvider);
				}
			}
		}