public void PropertyGridItemsInitialization(ZForge.Controls.PropertyGridEx.CustomPropertyCollection items, bool global) { foreach (AvailablePlugIn <IPlugIn> pi in this.AvailablePlugInCollection) { IPlugInUI u = pi.Instance as IPlugInUI; if (u == null) { continue; } if (global == false) { List <ZForge.Controls.PropertyGridEx.CustomProperty> plist = u.UIPropertyItems; if (plist == null) { continue; } foreach (ZForge.Controls.PropertyGridEx.CustomProperty t in plist) { if (pi.Instance is IPlugInVideoSource) { t.Visible = false; } items.Add(t); } } else { IPlugInUIWithGlobal ig = pi.Instance as IPlugInUIWithGlobal; if (ig != null) { ig.GlobalOperation = true; List <ZForge.Controls.PropertyGridEx.CustomProperty> plist = u.UIPropertyItems; if (plist == null) { continue; } foreach (CustomProperty t in plist) { items.Add(t); } } } } }