本文整理汇总了C#中FilterSettings类的典型用法代码示例。如果您正苦于以下问题:C# FilterSettings类的具体用法?C# FilterSettings怎么用?C# FilterSettings使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FilterSettings类属于命名空间,在下文中一共展示了FilterSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Filter
public virtual FilterResult Filter(FilterSettings settings)
{
if (string.IsNullOrEmpty(settings.SearchTerm))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例2: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (settings.SearchTermMatches(field.Name) && settings.Language.ShowMember(field))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例3: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (settings.SearchTermMatches(this.name))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例4: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (string.IsNullOrEmpty(settings.SearchTerm))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例5: TreeWalker
public TreeWalker(INode root, FilterSettings settings, NodeFilter filter)
{
_root = root;
_settings = settings;
_filter = filter ?? (m => FilterResult.Accept);
_current = _root;
}
示例6: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this);
if (res.FilterResult != null)
return res.FilterResult.Value;
return base.Filter(settings);
}
示例7: RunningTotalsTaskSettings
// initialize settings to defaults
public RunningTotalsTaskSettings()
{
VariableGroups = new List<string>();
FilterSettings = new FilterSettings();
DataOut = "WORK.OUT_TOTALS";
VariableMeasure = "";
VariableTotal = "";
}
示例8: Filter
public override FilterResult Filter(FilterSettings settings) {
var res = settings.Filter.GetFilterResult(this.Name, ((AssemblyTreeNode)Parent).DnSpyFile);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(name))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例9: Filter
public override FilterResult Filter(FilterSettings settings) {
var res = settings.Filter.GetFilterResult(this);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (string.IsNullOrEmpty(settings.SearchTerm))
return FilterResult.MatchAndRecurse;
else
return FilterResult.Recurse;
}
示例10: NodeIterator
public NodeIterator(INode root, FilterSettings settings, NodeFilter filter)
{
_root = root;
_settings = settings;
_filter = filter ?? (m => FilterResult.Accept);
_beforeNode = true;
_iterator = _root.GetElements<INode>(settings);
_reference = _iterator.First();
}
示例11: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && (r.Attributes & ManifestResourceAttributes.VisibilityMask) == ManifestResourceAttributes.Private)
return FilterResult.Hidden;
if (settings.SearchTermMatches(r.Name))
return FilterResult.Match;
else
return FilterResult.Hidden;
}
示例12: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && !IsPublicAPI)
return FilterResult.Hidden;
if (settings.SearchTermMatches(type.Name)) {
if (type.IsNested && !settings.Language.ShowMember(type))
return FilterResult.Hidden;
else
return FilterResult.Match;
} else
return FilterResult.Recurse;
}
示例13: Filter
public override FilterResult Filter(FilterSettings settings)
{
var res = settings.Filter.GetFilterResult(this);
if (res.FilterResult != null)
return res.FilterResult.Value;
if (settings.SearchTermMatches(type.Name)) {
if (type.IsNested && !settings.Language.ShowMember(type))
return FilterResult.Hidden;
else
return FilterResult.Match;
} else
return FilterResult.Recurse;
}
示例14: Filter
public override FilterResult Filter(FilterSettings settings)
{
if (!settings.ShowInternalApi && !IsPublicAPI)
return FilterResult.Hidden;
var searchableName = UnicodeSupport.FormatUnicodeIdentifier(type.Name);
if (settings.SearchTermMatches(searchableName))
{
if (settings.Language.ShowMember(type))
return FilterResult.Match;
else
return FilterResult.Hidden;
} else {
return FilterResult.Recurse;
}
}
示例15: StripSearchTerm
FilterSettings StripSearchTerm(FilterSettings filterSettings)
{
if (filterSettings == null)
return null;
if (!string.IsNullOrEmpty(filterSettings.SearchTerm)) {
filterSettings = filterSettings.Clone();
filterSettings.SearchTerm = null;
}
return filterSettings;
}