Click or drag to resize
weroSoft AG, Software
ParameterEditorViewModel Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Defines the view model of the key/value parameters.
Inheritance Hierarchy

Namespace:  WeroSoft.Triton.Desktop.Controls
Assembly:  WeroSoft.Triton.Control.Library (in WeroSoft.Triton.Control.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public class ParameterEditorViewModel : CultureSupportingViewModel, 
	IDataGridViewModel<DataGridViewModel<KeyValueParameterViewModel>>

The ParameterEditorViewModel type exposes the following members.

Constructors
  NameDescription
Public methodParameterEditorViewModel
Initializes an instance of the type ParameterEditorViewModel.
Public methodParameterEditorViewModel(Boolean, Boolean, Boolean)
Initializes an instance of the type ParameterEditorViewModel defining the user rights.
Top
Properties
  NameDescription
Public propertyAddParameterCommand
Gets the command to add parameters.
Public propertyApplyChangesCommand
Gets the command to apply the changes of a parameter.
Public propertyCancelChangesCommand
Gets the command to discard the changes of the parameter.
Public propertyCanCreate
Gets or sets whether the user has right to create the data.
Public propertyCanDelete
Gets or sets whether the user has right to delete the data.
Public propertyCanUpdate
Gets or sets whether the user has right to edit the data.
Public propertyDataGridViewModel
The data of the view model.
Public propertyDeleteParameterCommand
Gets the command to delete parameters.
Public propertyIsEditEnabled
Gets and sets whether editing of the parameters is enabled.
Public propertyIsModified
Gets or sets whether the view model is modified or not.
(Overrides ViewModelBaseIsModified.)
Public propertyIsReadOnly
Gets or sets the flag indicating whether the object is read-only.
(Inherited from ViewModelBase.)
Public propertyIsSaved
Gets whether the edited data have been saved.
Public propertyKeyColumnWidthPercentage
Gets or sets the width of the columns with the Key as percentage of the whole width of the dialog.
Public propertyKeyValueParameterViewModel
Gets and set the view model of the parameter to add or modify.
Public propertyLabel
Gets or sets the label of the list.
Protected propertyModelCascadingCollectionChangedEventObjects
Gets a list of cascaded events for collection changed.
(Inherited from ViewModelBase.)
Protected propertyModelCascadingEventObjects
Gets a list of cascaded event objects.
(Inherited from ViewModelBase.)
Public propertyMoveDownCommand
Gets the command to move down the selected parameter of the list.
Public propertyMoveUpCommand
Gets the command to move down the selected parameter of the list.
Public propertyParameters
Gets or sets the parameters as Dictionary.
Public propertyShowValidationResults
Gets or sets how the validation results of the parameter are to be shown.
Public propertySorted
Gets or sets whether the list is sorted.
Top
Methods
  NameDescription
Public methodCultureChanged
Called if the culture has been changed.
(Inherited from CultureSupportingViewModel.)
Public methodDataValidate
Validate the edited parameter.
Public methodDispose
Disposes the object.
(Inherited from CultureSupportingViewModel.)
Public methodDispose(Boolean)
Disposes the object.
(Inherited from CultureSupportingViewModel.)
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.)
Protected methodGetPropertyValueT
Gets the value of a particular property.
(Inherited from ViewModelBase.)
Protected methodGetResourceValueT
Gets the value of a particular property.
(Inherited from CultureSupportingViewModel.)
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 methodNotifyAllRegisteredProperties
Notify all registered properties in the property collection.
(Inherited from CultureSupportingViewModel.)
Protected methodOnPropertyChanged
Raises the event PropertyChanged.
(Inherited from NotifyPropertyChanged.)
Protected methodSetPropertyValue
Sets the value of a particular property.
(Inherited from ViewModelBase.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate the edited parameter and fire an event if it fails. The errors are shown in the message area if required.
Public methodValidate(DialogValidationEventArgs)
Validate the edited parameter.
Top
Events
  NameDescription
Public eventParameterAdded
Event raised when a parameter has been added.
Public eventParameterChanged
Event raised when a parameter has been modified.
Public eventParameterDeleted
Event raised when parameters have been deleted.
Public eventParameterMoved
Event raised when a parameter has been moved.
Public eventPropertyChanged
Raised on changing a property.
(Inherited from NotifyPropertyChanged.)
Public eventValidationError
Event raised when the validation of the parameter failed.
Top
Fields
  NameDescription
Protected fieldHasNoModifyingAttribute
Gets a collection for handling modification flags.
(Inherited from ViewModelBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodClone(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodCloneT(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodConvert (Defined by DataConverterExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String)Overloaded.
Creates a data entry into a string builder according to the giving parameters.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry for a data element.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry into a string builder.
(Defined by TraceExtensions.)
Public Extension MethodDynamicCast
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.)
Public Extension MethodExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.)
Public Extension MethodGetFieldValue(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetFieldValueT(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValue(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodInject(Type, Object)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInject(Type, Object, Boolean)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInjectField
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Type, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInvoke(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodInvokeTResult(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodSetFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetPropertyValue
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodTryInjectProperty
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.)
Top
See Also