Class FilterFavorite
Defines a favorite of a FilterControl.
Inheritance
System.Object
FilterFavorite
Implements
System.ComponentModel.INotifyPropertyChanged
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
System.String | name | The name of the filter favorite. |
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.IEnumerable<FilterState> |
Name
Gets the name of the favorite.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceEquals(FilterFavorite)
Declaration
protected bool Equals(FilterFavorite other)
Parameters
Type | Name | Description |
---|---|---|
FilterFavorite | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
View Source
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Overrides
System.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 |
---|---|---|
System.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
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |
Implements
System.ComponentModel.INotifyPropertyChanged