Class ContactCategoryViewModel
Inheritance
System.Object
ContactCategoryViewModel
Implements
System.Collections.Generic.IEqualityComparer<ContactCategoryViewModel>
System.IEquatable<ContactCategoryViewModel>
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class ContactCategoryViewModel : ViewModelBase, IEqualityComparer<ContactCategoryViewModel>, IEquatable<ContactCategoryViewModel>
Constructors
| Improve this Doc View SourceContactCategoryViewModel()
Initializes a ViewModel with a new ContactState
Declaration
public ContactCategoryViewModel()
ContactCategoryViewModel(ContactCategory)
Initializes a ViewModel with the passed ContactCategory
Declaration
public ContactCategoryViewModel(ContactCategory currentObject)
Parameters
Type | Name | Description |
---|---|---|
ContactCategory | currentObject |
Properties
| Improve this Doc View SourceCurrentObject
Gets or sets the CurrentObject of this ViewModel as ContactCategory
Declaration
public ContactCategory CurrentObject { get; set; }
Property Value
Type | Description |
---|---|
ContactCategory |
IsSelectable
Gets or sets the isSelectable flag of the CurrentObject
Declaration
public bool IsSelectable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets or sets the name of the CurrentObject
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(ContactCategoryViewModel)
Compare with other
Declaration
public bool Equals(ContactCategoryViewModel other)
Parameters
Type | Name | Description |
---|---|---|
ContactCategoryViewModel | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(ContactCategoryViewModel, ContactCategoryViewModel)
Compare two viewmodels
Declaration
public bool Equals(ContactCategoryViewModel x, ContactCategoryViewModel y)
Parameters
Type | Name | Description |
---|---|---|
ContactCategoryViewModel | x | |
ContactCategoryViewModel | y |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Equals based on CurrentObject.Id
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Get hashcode as int from CurrentObject.Id
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
GetHashCode(ContactCategoryViewModel)
Get the hashcode of the object
Declaration
public int GetHashCode(ContactCategoryViewModel obj)
Parameters
Type | Name | Description |
---|---|---|
ContactCategoryViewModel | obj |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IEqualityComparer<T>
System.IEquatable<T>