Class Worker
A worker.
[DataContract(IsReference = true)]
[KnownType(typeof(Group))]
public class Worker : INotifyPropertyChanged
- Inheritance
-
Worker
- Implements
- Inherited Members
Properties
BadgeNumber
Gets or sets the badge number.
[DataMember]
public string BadgeNumber { get; set; }
Property Value
FirstName
Gets or sets the first name.
[DataMember]
public string FirstName { get; set; }
Property Value
FullName
Gets the full name of the worker.
public string FullName { get; }
Property Value
Remarks
This property value is derived from the FirstName and LastName properties.
FullNameAndNumber
Gets the full name and id of the worker, in the form "FullName (BadgeNumber)".
public string FullNameAndNumber { get; }
Property Value
Remarks
This property value is derived from the FirstName, LastName, and BadgeNumber properties.
Groups
Gets or sets the groups to which this worker belongs.
[DataMember(Order = 2)]
public TrackableCollection<Group> Groups { get; set; }
Property Value
IsActive
Gets or sets whether this worker is an active worker (i.e., allowed to log on).
[DataMember]
public bool IsActive { get; set; }
Property Value
IsDeserializing
Gets or sets whether this object is currently being deserialized.
protected bool IsDeserializing { get; }
Property Value
LastName
Gets or sets the last name.
[DataMember]
public string LastName { get; set; }
Property Value
WorkerId
Gets or sets the worker identification number.
[DataMember]
public int WorkerId { get; set; }
Property Value
Methods
OnPropertyChanged(string)
Processes property changes by raising the PropertyChanged event.
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
stringThe name of the property that changed.
ToString()
Returns the FullNameAndNumber value as a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged