Click or drag to resize
CommandifiedMemberTValue, TChangeType Class
Class which represents a member variable which is commandified, so setting the value occurs through commands.
Inheritance Hierarchy
SystemObject
  SD.Tools.Algorithmia.GeneralDataStructuresCommandifiedMemberTValue, TChangeType
    SD.LLBLGen.Pro.Core.GeneralDataStructuresValidatableMemberTValue, TChangeType

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.0.0 (1.3.17.0314)
Syntax
public class CommandifiedMember<TValue, TChangeType>

Type Parameters

TValue
The type of the value.
TChangeType
The type of the change type enum.

The CommandifiedMemberTValue, TChangeType type exposes the following members.

Constructors
  NameDescription
Public methodCommandifiedMemberTValue, TChangeType(String, TChangeType)
Initializes a new instance of the CommandifiedMemberTValue, TChangeType class.
Public methodCommandifiedMemberTValue, TChangeType(String, TChangeType, ErrorContainer)
Initializes a new instance of the CommandifiedMemberTValue, TChangeType class.
Public methodCommandifiedMemberTValue, TChangeType(String, TChangeType, TValue)
Initializes a new instance of the CommandifiedMemberTValue, TChangeType class.
Public methodCommandifiedMemberTValue, TChangeType(String, TChangeType, ErrorContainer, TValue)
Initializes a new instance of the CommandifiedMemberTValue, TChangeType class.
Top
Properties
  NameDescription
Protected propertyLoggedErrors
Gets the logged errors.
Protected propertyMemberName
Gets the name of the member.
Public propertyMemberValue
Gets or sets the member value.
Public propertyThrowExceptionOnValidationError
Gets or sets a value indicating whether an exception should be thrown if validation fails (true, default) or not (false)
Top
Methods
  NameDescription
Public methodBindToElementChanged
Binds to INotifyElementChanged.ElementChanged on the value set in memberValue, if supported.
Public methodBindToElementRemoved
Binds to the ElementRemoved event
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAfterMemberValueSet
Called after the membervalue has been set to a new value.
Protected methodOnBeforeMemberValueSet
Called before the membervalue is about to be set to the value specified.
Protected methodOnMemberSetToSameValue
Called when the member is set to the same value it already has
Protected methodResetErrorForMember
Resets the error for member.
Public methodSetInitialValue
Sets the initial value of this commandified member. It does this by bypassing the actual member set function. Use this method to avoid events being raised while setting the value and also when you want to avoid using commands to set the value, as the memberValue is set without using commands. No validation occurs as well, so only use this if you want to set the initial value after the ctor has already been called.
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Public methodUnbindFromElementChanged
Unbinds from the ElementChanged event
Public methodUnbindFromElementRemoved
Unbinds from the ElementRemoved event
Protected methodValidateMemberValue
Validates the member value.
Top
Events
  NameDescription
Public eventErrorReset
Event which is raised explicitly to signal subscribers that the error has been reset. This event is only raised if there's a necessity for it: If there's an error set and this object was set to the same value, resetting the error, subscribers don't know the error has been reset as the member value itself won't be changed. This event will notify them that the error has been reset and they should raise a Propertychanged event to notify UI elements that they can clear ErrorInfo providers.
Public eventValueChanged
Event which is raised when MemberValue is set to a different value. If MemberValue's value is a mutable object and implements INotifyElementChanged, the event is also raised when some values inside the value object change. In that case, the original value and the new value in the event args are the same.
Public eventValueElementRemoved
Event which is raised when the value implements INotifyElementRemoved and it got removed from its container. This event is used in that situation to notify observers that the value of this CommandifiedMember is no longer usable.
Top
Remarks
Resets error messages on successful set of a value, or if the field is set to the same value. Binds to the HasBeenChanged event of TValue, if it implements INotifyAsChanged, and raises ValueChanged if HasBeenChanged is raised on an element. Binds to the HasBeenRemoved event of TValue, if it implements INotifyAsRemoved, and raises ValueElementRemoved if HasBeenRemoved is raised on an element.
See Also