Class FilterFavorite
Defines a favorite of a FilterControl.
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[Serializable]
public class FilterFavorite : INotifyPropertyChanged
Constructors
View SourceFilterFavorite(string, IEnumerable<FilterState>)
Creates a new instance of the FilterFavorite class.
Declaration
public FilterFavorite(string name, IEnumerable<FilterState> filterStates)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the filter favorite. |
| IEnumerable<FilterState> | filterStates | The states of the filters. |
Properties
View SourceFilterStates
Gets the state of the FilterControl of the favorite.
Declaration
public IEnumerable<FilterState> FilterStates { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<FilterState> |
Name
Gets the name of the favorite.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceEquals(FilterFavorite)
Declaration
[SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "Parameter other is never null")]
protected bool Equals(FilterFavorite other)
Parameters
| Type | Name | Description |
|---|---|---|
| FilterFavorite | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
View SourceNotifyPropertyChanged(string)
Method which will invoke the PropertyChanged event using propertyName.
Declaration
protected virtual void NotifyPropertyChanged(string propertyName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property name to invoke the PropertyChanged event for. If not provided then it will using the calling method or property name. |
Events
View SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |