Unit |
public class UnitEnvironmentController : MVCANControllerEditCopyOfDocBase<QuantityWithUnitGuiEnvironment, IUnitEnvironmentView>, INotifyPropertyChanged
The UnitEnvironmentController type exposes the following members.
| Name | Description | |
|---|---|---|
| UnitEnvironmentController | Initializes a new instance of the UnitEnvironmentController class |
| Name | Description | |
|---|---|---|
| AddToIncludedUnits | ||
| AllPrefixedUnits | ||
| AvailableUnits | ||
| IncludedUnits | ||
| IsDisposed |
Gets a value indicating whether this controller is already disposed.
(Inherited from ControllerBase) | |
| ModelObject |
Gets the document that this controller has edited. Here the state of the document has changed only after calling Apply(Boolean).
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| NoDocumentException |
Gets an exception that is thrown when a controller was not initialized with a document.
(Inherited from ControllerBase) | |
| NotInitializedException |
Gets an exception that is thrown when a controller is not properly initialized.
(Inherited from ControllerBase) | |
| NoViewException |
Gets an exception that is thrown when a controller currently has no view.
(Inherited from ControllerBase) | |
| Prefixes | ||
| RemoveFromIncludedUnits | ||
| SelectedAvailableUnit | ||
| SelectedIncludedUnit | ||
| SelectedPrefixesChangedCommand | ||
| UseDocumentCopy |
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 hierarchy has already made a copy of the document.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| ViewObject |
Gets or sets the GUI element that shows the model to the user.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) |
| Name | Description | |
|---|---|---|
| Apply | (Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewApply(Boolean)) | |
| ApplyEnd |
Helper that performs the final steps of the apply operation, optionally copying back to the original document and disposing the controller.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| AttachView | (Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewAttachView) | |
| CheckDocumentInitializedT |
Checks whether the document has been initialized and throws an exception if it is null.
(Inherited from ControllerBase) | |
| DetachView | (Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewDetachView) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from ControllerBase) | |
| Dispose(Boolean) |
Releases unmanaged and, optionally, managed resources.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetSubControllers | (Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewGetSubControllers) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Initialize | (Overrides MVCANControllerEditCopyOfDocBaseTModel, TViewInitialize(Boolean)) | |
| InitializeDocument |
Initializes the controller with the document. If successful, the function returns .
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OnPropertyChanged | (Inherited from ControllerBase) | |
| Revert |
Tries to revert changes to the model, i.e. restores the original state of the model.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| SetQuantity | ||
| ThrowIfNotInitialized | Throws an exception if the controller is not initialized with a document. (Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| PropertyChanged |
Occurs when a property value changes.
(Inherited from ControllerBase) |
| Name | Description | |
|---|---|---|
| _doc |
The document to edit. If _useDocumentCopy is , this is a copy of the original document; otherwise, it is the original document itself.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| _originalDoc |
The original document. If _useDocumentCopy is , it may have been edited by this controller.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) | |
| _useDocumentCopy |
If , 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) | |
| _view |
The GUI view of this controller.
(Inherited from MVCANControllerEditCopyOfDocBaseTModel, TView) |