protected override void FillTreeWithData(ObjectSelectorEditor.Selector selector, ITypeDescriptorContext context, IServiceProvider provider)
 {
   if (context == null || context.Instance == null)
     return;
   selector.Clear();
   if (AccountSelectorEditor.clients.Count <= 0)
     return;
   foreach (string label in AccountSelectorEditor.clients)
     selector.AddNode(label, (object) label, (ObjectSelectorEditor.SelectorNode) null);
   selector.Sort();
 }
Exemple #2
0
    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);
		}