See also:
NTier Windows Forms Framework Home
NTier Framework API reference
NTier Windows Forms Framework Home
NTier Framework API reference
The FormShowNewAction type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | FormShowNewAction()()()() | Initializes a new instance of the FormShowNewAction class |
![]() | FormShowNewAction(Object, Type) |
Use this constructor to provide the new committed entity and the form type in code.
|
Methods
Name | Description | |
---|---|---|
![]() | CloneCore | (Inherited from FormShowActionBase.) |
![]() | 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) | (Inherited from FormShowActionBase.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from NAction.) |
![]() | GetEntityToEdit | (Overrides FormShowActionBase..::..GetEntityToEdit(Object, Object).) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | 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 | (Inherited from FormShowActionBase.) |
![]() | MemberwiseClone | (Inherited from NAction.) |
![]() | NewForm | (Inherited from FormShowActionBase.) |
![]() | OnBeforeFormShow | (Inherited from FormShowActionBase.) |
![]() | OnBeforeRun | (Inherited from FormShowActionBase.) |
![]() | OnEnabledChanged | (Inherited from NAction.) |
![]() | OnFormShow | (Inherited from FormShowActionBase.) |
![]() | OnQueryEntityToEdit | (Inherited from FormShowActionBase.) |
![]() | OnSelectsCollectionOnlyChanged | (Inherited from FormShowActionBase.) |
![]() | QueryUserToSave | (Inherited from FormShowActionBase.) |
![]() | ReportErrorToUser |
Reports an error message to the user.
Override to show a custom error dialog or message to the user.
(Inherited from FormShowActionBase.) |
![]() | RequiresFormDataSourceType |
Get whether to a compile time check should be provided to ensure a FormType with
a valid DataSourceType is configured.
(Inherited from FormShowActionBase.) |
![]() | Run | (Inherited from NAction.) |
![]() | RunCore | (Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | ToString | (Inherited from NAction.) |
![]() | TryActivateVisibleNonModalForm |
Tries to active a non-modal form that is already showing the entity data for 'entityToEdit'.
(Inherited from FormShowActionBase.) |
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.) |
![]() | CollectionBindingPath |
Get or set the binding path to the collection on the hosting control that will be used
to AddNew() on to get the new entity to bind on the editing form.
|
![]() | CollectionBindingPathCompileTimeCheck | |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | CompileTimeValidation | (Inherited from FormShowActionBase.) |
![]() | CompileTimeValidationCore | (Overrides FormShowActionBase..::..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.
(Inherited from FormShowActionBase.) |
![]() | Enabled | (Inherited from NAction.) |
![]() | EnabledCore | (Inherited from FormShowActionBase.) |
![]() | FormDataSourceType |
Get or set the type of the data source that the form expects to bind to.
(Inherited from FormShowActionBase.) |
![]() | FormType |
Get or set the type of the form, or form factory that is used to edit the data.
(Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | Modal |
Get or set whether the form should be displayed modally.
(Inherited from FormShowActionBase.) |
![]() | ReadOnly |
Get or set whether the form should display the entity data in read only mode.
(Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | SelectedItemBindingPathCompileTimeCheck | (Inherited from FormShowActionBase.) |
![]() | SelectsCollectionOnly | (Overrides FormShowActionBase..::..SelectsCollectionOnly.) |
![]() | Site | (Inherited from BoundControlActionBase.) |
![]() | VisualTechnology | (Inherited from BoundControlActionBase.) |
Events
Name | Description | |
---|---|---|
![]() | BeforeFormShow |
Raised before the form is shown to the user.
(Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |
![]() | 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.
(Inherited from FormShowActionBase.) |