Show / Hide Table of Contents

Class QualityStatementItemFilterBase

Provides a base class from which Addins implementing IQualityStatementItemFilter may derive.

Inheritance
System.Object
QualityStatementItemFilterBase
Namespace: Algenta.Colectica.ViewModel
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public abstract class QualityStatementItemFilterBase : object, IQualityStatementItemFilter

Constructors

QualityStatementItemFilterBase(String, Int32)

Initializes a new instance of the QualityStatementItemFilterBase class.

Declaration
public QualityStatementItemFilterBase(string name, int weight)
Parameters
Type Name Description
System.String name

The text to be displayed on the Addin's button.

System.Int32 weight

The order in which the Addin's button will be displayed.

Properties

IsEnabled

Gets a value indicating whether the button should be displayed.

Declaration
public bool IsEnabled { get; protected set; }
Property Value
Type Description
System.Boolean
Implements
IQualityStatementItemFilter.IsEnabled

Name

Gets the text to be displayed on the filter's button.

Declaration
public string Name { get; protected set; }
Property Value
Type Description
System.String
Implements
IQualityStatementItemFilter.Name

Weight

Gets the order in which this Addin should be displayed. Lower values are displayed higher or further to the left.

Declaration
public int Weight { get; protected set; }
Property Value
Type Description
System.Int32
Implements
IQualityStatementItemFilter.Weight

Methods

GetItemState(QualityStatementItem)

Called to determine whether the specified quality statement item should be displayed when the filter defined by this Addin is active.

Declaration
public abstract QualityStatementItemState GetItemState(QualityStatementItem item)
Parameters
Type Name Description
QualityStatementItem item

The item for which state is being determined.

Returns
Type Description
QualityStatementItemState

Whether the item should be displayed, disabled, or hidden.

Implements
IQualityStatementItemFilter.GetItemState(QualityStatementItem)

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica