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)

Syntax


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)
public:
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

T
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

Parameters

pWizGuid
Type: Guid
A guid for the Wizard. Can be a hardcoded guid
pTableReference
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
pDashboardID
Type: Guid
Guid of the Dashboard the wizard should be added to. It can be the dashboard of a Thing or any other dashboard
pTitle
Type: String
Title of the wizard
pPropertyBag
Type: nsCDEngine.Engines.NMIService..::..ThePropertyBag
Control Properties of the Wizard
pB4InsertCallback
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
pAfterInsertCallback
Type: Action<(Of <(<'T, TheClientInfo>)>)>
A callback that is called after the new record was written to the StorageMirror

Return Value