Table of Contents

Class Criterion<T>

Namespace
The.WPF.Screens.Criteria
Assembly
Instagile.WPF.dll
public sealed class Criterion<T> : ICriterion<T>

Type Parameters

T
Inheritance
Criterion<T>
Implements
Inherited Members
Extension Methods

Constructors

Criterion(string, IEnumerable<SubcriterionBase<T>>, bool)

public Criterion(string label, IEnumerable<SubcriterionBase<T>> subcriterias, bool appliesByDefault)

Parameters

label string
subcriterias IEnumerable<SubcriterionBase<T>>
appliesByDefault bool

Properties

AppliesByDefault

Applies regardless of changedness if its tab is active; makes the main tab always-active

public bool AppliesByDefault { get; }

Property Value

bool

DefaultSubcriterionName

public string DefaultSubcriterionName { get; }

Property Value

string

Label

Caption used for this criterion's fields

public string Label { get; }

Property Value

string

Subcriteria

An ordered series of description-field-spec tuples

public Dictionary<string, SubcriterionBase<T>> Subcriteria { get; }

Property Value

Dictionary<string, SubcriterionBase<T>>

Methods

Create(string, bool, params SubcriterionBase<T>[])

public static Criterion<T> Create(string label, bool appliesByDefault, params SubcriterionBase<T>[] subcriteria)

Parameters

label string
appliesByDefault bool
subcriteria SubcriterionBase<T>[]

Returns

Criterion<T>

Create(string, params SubcriterionBase<T>[])

public static Criterion<T> Create(string label, params SubcriterionBase<T>[] subcriteria)

Parameters

label string
subcriteria SubcriterionBase<T>[]

Returns

Criterion<T>

Create<U>(IField<U>, string, Action<U, T>, bool)

public static Criterion<T> Create<U>(IField<U> field, string description, Action<U, T> specify, bool appliesByDefault = false)

Parameters

field IField<U>
description string
specify Action<U, T>
appliesByDefault bool

Returns

Criterion<T>

Type Parameters

U

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.