C-DEngine 5.105

TheNMIEngine..::..AddNewWizard<(Of <(<'T>)>)> Method (Guid, Guid, Guid, String, ThePropertyBag, Action<(Of <(<'T, TheClientInfo>)>)>, Action<(Of <(<'T, TheClientInfo>)>)>)

Adds a new custom wizard to the NMI Model

Namespace:  nsCDEngine.Engines.NMIService
Assembly:  C-DEngine (in C-DEngine.dll)


public static cdeConcurrentDictionary<string, TheMetaDataBase> AddNewWizard<T>(
	Guid pWizGuid,
	Guid pTableReference,
	Guid pDashboardID,
	string pTitle,
	ThePropertyBag pPropertyBag,
	Action<T, TheClientInfo> pB4InsertCallback,
	Action<T, TheClientInfo> pAfterInsertCallback
where T : TheDataBase, INotifyPropertyChanged
Public Shared Function AddNewWizard(Of T As {TheDataBase, INotifyPropertyChanged}) ( _
	pWizGuid As Guid, _
	pTableReference As Guid, _
	pDashboardID As Guid, _
	pTitle As String, _
	pPropertyBag As ThePropertyBag, _
	pB4InsertCallback As Action(Of T, TheClientInfo), _
	pAfterInsertCallback As Action(Of T, TheClientInfo) _
) As cdeConcurrentDictionary(Of String, TheMetaDataBase)
generic<typename T>
where T : TheDataBase, INotifyPropertyChanged
static cdeConcurrentDictionary<String^, TheMetaDataBase^>^ AddNewWizard(
	Guid^ pWizGuid, 
	Guid^ pTableReference, 
	Guid^ pDashboardID, 
	String^ pTitle, 
	ThePropertyBag^ pPropertyBag, 
	Action<T, TheClientInfo^>^ pB4InsertCallback, 
	Action<T, TheClientInfo^>^ pAfterInsertCallback

Type Parameters

A class that will contain the input from the Wizard when the user clicks "Finish". A developer will have to use the callbacks to use these inputs


Type: Guid
A guid for the Wizard. Can be a hardcoded guid
Type: Guid
Guid of the Table that contains the defDataSource for the Wizard. This can be Guid.Empty if the T is new class not yet used in any existing StorageMirror
Type: Guid
Guid of the Dashboard the wizard should be added to. It can be the dashboard of a Thing or any other dashboard
Type: String
Title of the wizard
Type: nsCDEngine.Engines.NMIService..::..ThePropertyBag
Control Properties of the Wizard
Type: Action<(Of <(<'T, TheClientInfo>)>)>
A callback that is called right before the new record would be inserted in to the StorageMirror of the Table referenced by the TableReference. If the cdeMID of the first parameter is set to Guid.Empty, the new record will NOT be inserted to the StorageMirror
Type: Action<(Of <(<'T, TheClientInfo>)>)>
A callback that is called after the new record was written to the StorageMirror

Return Value