protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { if (context == null || context.Instance == null) return; this.instance = context.Instance; selector.Clear(); if (this.BdDbx0JCT) selector.AddNode(USaG3GpjZagj1iVdv4u.Y4misFk9D9(424), (object) null, (ObjectSelectorEditor.SelectorNode) null); foreach (KeyValuePair<string, object> keyValuePair in this.GetItems()) selector.AddNode(keyValuePair.Key, keyValuePair.Value, (ObjectSelectorEditor.SelectorNode) null); object obj = context.PropertyDescriptor.GetValue(context.Instance); if (obj == null && this.BdDbx0JCT) { selector.SelectedNode = selector.Nodes[0]; } else { foreach (ObjectSelectorEditor.SelectorNode selectorNode in selector.Nodes) { if (selectorNode.value != null && selectorNode.value.Equals(obj)) { selector.SelectedNode = (TreeNode) selectorNode; break; } } } }
protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { if (context == null || context.Instance == null) return; selector.Clear(); foreach (string label in this.types) selector.AddNode(label, (object) label, (ObjectSelectorEditor.SelectorNode) null); }
protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { if (context != null && context.Instance != null) { object obj = context.PropertyDescriptor.GetValue (context.Instance); selector.Clear (); foreach (string label in BeginString.GetValues()) { ObjectSelectorEditor.SelectorNode selectorNode = selector.AddNode (label, (object)label, (ObjectSelectorEditor.SelectorNode)null); if (((object)label).Equals (obj)) selector.SelectedNode = (TreeNode)selectorNode; } } else base.FillTreeWithData (selector, context, provider); }
protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { if (context != null && context.Instance != null) { AltIDGroup altIdGroup = (AltIDGroup) context.Instance; selector.Clear(); foreach (IProvider provider1 in FreeQuant.Providers.ProviderManager.Providers) selector.AddNode(provider1.Name, (object) provider1.Name, (ObjectSelectorEditor.SelectorNode) null); selector.Sort(); foreach (ObjectSelectorEditor.SelectorNode selectorNode in selector.Nodes) { if (selectorNode.value.Equals((object) altIdGroup.AltSource)) { selector.SelectedNode = (TreeNode) selectorNode; break; } } selector.Width = 144; } else base.FillTreeWithData(selector, context, provider); }
protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider) { if (context != null && context.Instance != null) { AltIDGroup altIDGroup = (AltIDGroup)context.Instance; selector.Clear(); foreach (IProvider provider2 in SmartQuant.Providers.ProviderManager.Providers) { selector.AddNode(provider2.Name, provider2.Name, null); } selector.Sort(); foreach (ObjectSelectorEditor.SelectorNode selectorNode in selector.Nodes) { if (selectorNode.value.Equals(altIDGroup.AltSource)) { selector.SelectedNode = selectorNode; break; } } selector.Width = 144; return; } base.FillTreeWithData(selector, context, provider); }