'Declaration
Public Shared Function CreateForInstance(Of T As NNode)( _ ByVal node As T, _ ByVal context As NEditorContext, _ ByVal parentWindow As NWindow, _ ByVal onOkClicked As Nevron.Nov.Function(Of T) _ ) As NEditorWindow
'Usage
Dim node As T Dim context As NEditorContext Dim parentWindow As NWindow Dim onOkClicked As Nevron.Nov.Function(Of T) Dim value As NEditorWindow value = NEditorWindow.CreateForInstance(Of T)(node, context, parentWindow, onOkClicked)
public static NEditorWindow CreateForInstance<T>( T node, NEditorContext context, NWindow parentWindow, Nevron.Nov.Function<T> onOkClicked ) where T: NNode
Parameters
- node
- The node this editor should edit.
- context
- Editor context (can be null)
- parentWindow
- The parent window.
- onOkClicked
- The function to call if the user clicks the OK button of the editor window. Pass null if you are not interested in this event.
Type Parameters
- T
- The type to create an editor window for. This should be a type that derives from NNode.
Return Value
An editor window for the given node.