Show / Hide Table of Contents

Class FilterFavorite

Defines a favorite of a FilterControl.

Inheritance
object
FilterFavorite
Implements
INotifyPropertyChanged
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[Serializable]
public class FilterFavorite : INotifyPropertyChanged

Constructors

View Source

FilterFavorite(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 Source

FilterStates

Gets the state of the FilterControl of the favorite.

Declaration
public IEnumerable<FilterState> FilterStates { get; set; }
Property Value
Type Description
IEnumerable<FilterState>
View Source

Name

Gets the name of the favorite.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Methods

View Source

Equals(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
View Source

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
object.Equals(object)
View Source

GetHashCode()

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
object.GetHashCode()
View Source

NotifyPropertyChanged(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 Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

INotifyPropertyChanged

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
NotifyPropertyChangedExtensions.GetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
NotifyPropertyChangedExtensions.RaisePropertyChanged(INotifyPropertyChanged, string)
NotifyPropertyChangedExtensions.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
PropertyHelper.RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>, PropertyChangedEventHandler)
  • View Source
Back to top Generated by DocFX