See also:
NTier Windows Forms Framework Home
NTier Framework API reference
NTier Windows Forms Framework Home
NTier Framework API reference
The FormShowActionBase type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | FormShowActionBase()()()() | Initializes a new instance of the FormShowActionBase class |
![]() | FormShowActionBase(Object, Type) | Initializes a new instance of the FormShowActionBase class |
Methods
Name | Description | |
---|---|---|
![]() | CloneCore | (Overrides BoundControlActionBase..::..CloneCore()()()().) |
![]() | CreateCompileTimeCheckBindingMember |
Returns a CompileTimeCheckBindingMember that will be used to ensure the data item at the end of
'dataMember' is of type 'expectedType' at compile time.
(Inherited from BoundControlActionBase.) |
![]() | Dispose()()()() | (Inherited from NAction.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the FormShowActionBase and optionally releases the managed resources (Overrides BoundControlActionBase..::..Dispose(Boolean).) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from NAction.) |
![]() | GetEntityToEdit |
Get an instance of the entity or collection that will actually be shown on the form.
|
![]() | GetEntityToEditSource |
Get the entity data that is used as the source to the entity/collection that will be shown on the form.
This entity is branched before it is shown on the form, and GetEntityToEdit is used with the
branched data to get the actual entity/collection that is shown on the form.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetReferencedBy | (Inherited from NAction.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeBindingInfoProvider | (Overrides BoundControlActionBase..::..InitializeBindingInfoProvider()()()().) |
![]() | MemberwiseClone | (Inherited from NAction.) |
![]() | NewForm | |
![]() | OnBeforeFormShow | |
![]() | OnBeforeRun | (Overrides NActionOnBeforeRun()()()().) |
![]() | OnEnabledChanged | (Inherited from NAction.) |
![]() | OnFormShow | |
![]() | OnQueryEntityToEdit | |
![]() | OnSelectsCollectionOnlyChanged | |
![]() | QueryUserToSave | |
![]() | ReportErrorToUser |
Reports an error message to the user.
Override to show a custom error dialog or message to the user.
|
![]() | RequiresFormDataSourceType |
Get whether to a compile time check should be provided to ensure a FormType with
a valid DataSourceType is configured.
|
![]() | Run | (Inherited from NAction.) |
![]() | RunCore | (Overrides NActionRunCore()()()().) |
![]() | ShowMessage |
Show an informational, warning or error message to the user.
(Inherited from BoundControlActionBase.) |
![]() | SwitchToWaitCursor |
Switch the mouse cursor to a wait cursor while saving.
|
![]() | ToString | (Inherited from NAction.) |
![]() | TryActivateVisibleNonModalForm |
Tries to active a non-modal form that is already showing the entity data for 'entityToEdit'.
|
Properties
Name | Description | |
---|---|---|
![]() | BindingInfoProvider |
Get an instance of the helper class that is maintains the bound data.
(Inherited from BoundControlActionBase.) |
![]() | BoundControlDataSourceType |
Get the data source type of the container control.
This is used by NTier intellisense when the developer is choosing a binding path.
(Inherited from BoundControlActionBase.) |
![]() | CommitActions |
Get the actions that should be performed when changes on the form are 'committed' via a FormCommitAction.
For example, this property may be set to a FormSaveAction or FormDeleteAndSaveAction.
|
![]() | CompileTimeValidation | |
![]() | CompileTimeValidationCore | |
![]() | CurrentDataItem |
Get the current data item specified by: (Inherited from BoundControlActionBase.)HostingControl (or data bound parent).DataSource - the top level data source. HostingControl (or data bound parent).DataMember - the top level data member. DataMember - the relative data member. NOTE: Null will be returned in place of a deleted entity. |
![]() | DisableCompileTimeValidation |
Get or set whether to disable designer validation of types and binding members.
|
![]() | Enabled | (Inherited from NAction.) |
![]() | EnabledCore | (Overrides NActionEnabledCore.) |
![]() | FormDataSourceType |
Get or set the type of the data source that the form expects to bind to.
|
![]() | FormType |
Get or set the type of the form, or form factory that is used to edit the data.
|
![]() | HostingComponent | (Inherited from BoundControlActionBase.) |
![]() | HostingControl |
Get or set the control that hosts the action.
Usually this would be a button or menu item.
(Inherited from BoundControlActionBase.) |
![]() | LoadPersistentEntities |
Get or set whether the form data is loaded from the underlying data store directly if persistent.
If false, the IEntitySet is cloned instead which means the database won't need to be queried.
|
![]() | Modal |
Get or set whether the form should be displayed modally.
|
![]() | ReadOnly |
Get or set whether the form should display the entity data in read only mode.
|
![]() | ReferencedBy | (Inherited from NAction.) |
![]() | RequiresEntitySetSaved |
Get or set whether the user will be required to save the current form before the new form is shown.
|
![]() | ResetHasChangesBeforeEdit |
Get or set whether to revert EntitySet.HasChanges() to false before showing the form.
Set this to false if you want the Save button to be enabled on the shown form as soon as it is shown.
|
![]() | SelectedItemBindingPathCompileTimeCheck | |
![]() | SelectsCollectionOnly |
Get whether the form expects to bind to a collection, and not the select item within the collection.
|
![]() | Site | (Inherited from BoundControlActionBase.) |
![]() | VisualTechnology | (Inherited from BoundControlActionBase.) |
Events
Name | Description | |
---|---|---|
![]() | BeforeFormShow |
Raised before the form is shown to the user.
|
![]() | Disposed | (Inherited from NAction.) |
![]() | EnabledChanged | (Inherited from NAction.) |
![]() | FormShow |
Raised when the form is to be shown.
When this event is hooked, the event handler is responsible for showing the form.
|
![]() | QueryEntityToEdit |
Raised when get the entity to edit on the form, before it has been branched / cloned.
Throw an exception in the event to cancel showing the form and instead show a message to the user.
|