本文整理汇总了C#中Search.PopulateAdapters方法的典型用法代码示例。如果您正苦于以下问题:C# Search.PopulateAdapters方法的具体用法?C# Search.PopulateAdapters怎么用?C# Search.PopulateAdapters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Search
的用法示例。
在下文中一共展示了Search.PopulateAdapters方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompareResults
public static void CompareResults(Search search, XmlNode xmlNode)
{
ComparerAdapter adapter = new ComparerAdapter(search, xmlNode);
search.PopulateAdapters(adapter);
}
示例2: CreateNewRootNode
public VirtualTreeNode CreateNewRootNode(Search search, NavigationPane.NavigationMode mode)
{
IAcceptGroups groupAcceptor;
VirtualTreeNode newRootNode;
switch (mode)
{
case NavigationPane.NavigationMode.Objects:
newRootNode = viewObjects.RootNode;
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
viewObjects.Populate(search, groupAcceptor);
break;
case NavigationPane.NavigationMode.Tags:
newRootNode = viewTags.RootNode;
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
viewTags.Populate(search, groupAcceptor);
break;
case NavigationPane.NavigationMode.Folders:
newRootNode = viewFolders.RootNode;
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
viewFolders.Populate(search, groupAcceptor);
break;
case NavigationPane.NavigationMode.CustomFields:
newRootNode = viewFields.RootNode;
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
viewFields.Populate(search, groupAcceptor);
break;
case NavigationPane.NavigationMode.vApps:
newRootNode = viewVapps.RootNode;
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
viewVapps.Populate(search, groupAcceptor);
break;
case NavigationPane.NavigationMode.SavedSearch:
Util.ThrowIfParameterNull(search, "search");
newRootNode = new VirtualTreeNode(search.Name)
{
Tag = search,
ImageIndex = search.DefaultSearch
? (int)Icons.DefaultSearch
: (int)Icons.Search
};
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
search.PopulateAdapters(groupAcceptor);
break;
default://includes Infrastructure and Notifications
Util.ThrowIfParameterNull(search, "search");
newRootNode = new VirtualTreeNode("XenCenter") { ImageIndex = (int)Icons.Home };
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
search.PopulateAdapters(groupAcceptor);
break;
}
return newRootNode;
}
示例3: Populate
public void Populate(Search search)
{
ClearItems();
if (search != null && search.Query != null)
scope = search.Query.QueryScope;
else
scope = null;
search.PopulateAdapters(this);
}
示例4: CreateNewRootNode
public VirtualTreeNode CreateNewRootNode(Search search, bool organizationalMode)
{
if (!organizationalMode)
{
Util.ThrowIfParameterNull(search, "search");
}
VirtualTreeNode newRootNode = new VirtualTreeNode("XenCenter");
MainWindowTreeNodeGroupAcceptor groupAcceptor = new MainWindowTreeNodeGroupAcceptor(_highlightedDragTarget, _treeViewForeColor, _treeViewBackColor, newRootNode);
if (organizationalMode)
{
OrganizationalView.PopulateOrganizationalView(groupAcceptor, search);
}
else
{
search.PopulateAdapters(groupAcceptor);
}
return newRootNode;
}
示例5: CreateNewRootNode
public VirtualTreeNode CreateNewRootNode(Search search, TreeSearchBox.Mode mode)
{
VirtualTreeNode newRootNode;
MainWindowTreeNodeGroupAcceptor groupAcceptor;
switch (mode)
{
case TreeSearchBox.Mode.Objects:
newRootNode = new VirtualTreeNode(Messages.VIEW_OBJECTS);
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
OrganizationalView.PopulateObjectView(groupAcceptor, search);
break;
case TreeSearchBox.Mode.Organization:
newRootNode = new VirtualTreeNode(Messages.VIEW_ORGANIZATION);
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
OrganizationalView.PopulateOrganizationView(groupAcceptor, search);
break;
default:
Util.ThrowIfParameterNull(search, "search");
newRootNode = new VirtualTreeNode("XenCenter");
groupAcceptor = CreateGroupAcceptor(_highlightedDragTarget, newRootNode);
search.PopulateAdapters(groupAcceptor);
break;
}
return newRootNode;
}