Click or drag to resize

SingleChoiceController Class

Controller for a single value. This is a string here, but in derived classes, that can be anything that can be converted to and from a string.
Inheritance Hierarchy

Namespace: Altaxo.Gui.Common
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class SingleChoiceController : IMVCAController, 
	IMVCController, IDisposable, IApplyController, ISingleChoiceViewEventSink

The SingleChoiceController type exposes the following members.

Constructors
 NameDescription
Protected methodSingleChoiceController Initializes a new instance of the SingleChoiceController class.
Public methodSingleChoiceController(String, Int32) Initializes a new instance of the SingleChoiceController class.
Top
Properties
 NameDescription
Public propertyDescriptionText Gets or sets the description text.
Public propertyModelObject Gets the model (document) that this controller manages.
Public propertyViewObject Gets or sets the GUI element that shows the model to the user.
Top
Methods
 NameDescription
Public methodApply Called when the user input has to be applied to the document being controlled. Returns if apply is successful.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEhChoiceChanged Handles a change of the selected choice.
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 methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize Initializes the view from the current controller state.
Protected methodInitialize(String, Int32) Initializes the selectable values and the selected index.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRevert Try to revert changes to the model, i.e. restores the original state of the model.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected field_choice The committed choice index.
Protected field_choiceTemp The temporary choice index.
Protected field_descriptionText The description text shown by the controller.
Protected field_values The selectable values.
Protected field_view The attached view.
Top
See Also