Click or drag to resize

UserDefinedUnitEnvironmentController Class

Creates a custom unit environment
Inheritance Hierarchy

Namespace: Altaxo.Gui.Units
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class UserDefinedUnitEnvironmentController : MVCANControllerEditCopyOfDocBase<UserDefinedUnitEnvironment, IUserDefinedUnitEnvironmentView>, 
	INotifyPropertyChanged

The UserDefinedUnitEnvironmentController type exposes the following members.

Constructors
 NameDescription
Public methodUserDefinedUnitEnvironmentControllerInitializes a new instance of the UserDefinedUnitEnvironmentController class
Top
Properties
 NameDescription
Public propertyEnvironmentName 
Public propertyIsDisposedGet a value indication whether this controller is already disposed.
(Inherited from ControllerBase)
Public propertyModelObject Returns the document that this controller has edited. Here the state of the document has changed only after calling Apply(Boolean).
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected propertyNoDocumentException
(Inherited from ControllerBase)
Protected propertyNotInitializedException
(Inherited from ControllerBase)
Protected propertyNoViewException
(Inherited from ControllerBase)
Public propertyQuantities 
Public propertySelectedQuantity 
Public propertyUnitControllerViewObject 
Public propertyUseDocumentCopy Sets whether or not a copy of the document is used. If set to true, a copy of the document is used, so if the controller is not applied, all changes can be reverted. If set to false, no copy must be made. The document is directly changed by the controller, and changes can not be reverted. Use the last option if a controller up in the hierarchie has already made a copy of the document.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Public propertyViewObject Returns the Gui element that shows the model to the user.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Top
Methods
 NameDescription
Public methodApply
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewApply(Boolean))
Protected methodApplyEnd
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected methodAttachView
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewAttachView)
Protected methodCheckDocumentInitializedT
(Inherited from ControllerBase)
Protected methodDetachView
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewDetachView)
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ControllerBase)
Public methodDispose(Boolean) Releases unmanaged and - optionally - managed resources.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSubControllers
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewGetSubControllers)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewInitialize(Boolean))
Public methodInitializeDocument
(Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewInitializeDocument(Object))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnPropertyChanged
(Inherited from ControllerBase)
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected methodThrowIfNotInitializedThrows an exception if the controller is not initialized with a document.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged Occurs when a property value changes.
(Inherited from ControllerBase)
Top
Fields
 NameDescription
Protected field_docThe document to edit. If _useDocumentCopy is true, this is a copy of the original document; otherwise, it is the original document itself.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected field_originalDocThe original document. If _useDocumentCopy is false, it maybe has been edited by this controller.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected field_useDocumentCopyIf true, a copy of the document is made before editing; this copy can later be used to revert the state of the document to the original state.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Protected field_viewThe Gui view of this controller
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView)
Top
See Also