Class Order
Represents a order for a work piece (test item).
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.TypeAndResult
Assembly: Loehnert.TypeAndResult.dll
Syntax
public class Order : EntityBase, INotifyPropertyChanged, ITrackable, IEquatable<Order>, ICanApplyID<Order>
Constructors
Order(String)
Initializes a new instance of the Order class.
Declaration
public Order(string identifier)
Parameters
Type | Name | Description |
---|---|---|
String | identifier | Identifier for the order. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
Identifier
Gets the identifier.
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
String |
Parameters
Gets the additional parameters.
Declaration
public virtual EntityCollection<OrderParameter> Parameters { get; }
Property Value
Type | Description |
---|---|
EntityCollection<OrderParameter> |
WorkPieces
Gets the work pieces to which the order belongs.
Declaration
public virtual ObservableCollection<WorkPiece> WorkPieces { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<WorkPiece> |
Methods
ApplyID(Order)
Copies the ID and the IDs of the Parameters
from source
to this.
Declaration
public void ApplyID(Order source)
Parameters
Type | Name | Description |
---|---|---|
Order | source | Source object. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when this doesn't equals with |
Equals(Order)
Indicates whether the current object is equal to another object of the same type. Depends on the Identifier and the Parameters Equals(OrderParameter).
Declaration
public bool Equals(Order other)
Parameters
Type | Name | Description |
---|---|---|
Order | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean | true if the current object is equal to the |
Implements
System.ComponentModel.INotifyPropertyChanged