Quintiq file version 2.0
#parent: ListInitElement
Response OnClick () id:Response_ListInitElement_MenuImport_OnClick
{
  #keys: '[134490.0.328872466]'
  Body:
  [*
    // Import binary string file
    
    filename := Application.GetOpenFileName();
    if( filename <> '' )
    {
      binaryData := Application.ReadBinaryFile( filename );
      
      if( binaryData.Size() > 0 )
      {
        binaryValue := binaryData.AsBinaryValue();
        wizardManager := Dialog.Data().OwningLibWiz_Wizard();
        process := wizardManager.ImportNVT( binaryValue, Dialog.Data() );
        Dialog.Data( process );
      }
    }
  *]
  DefinitionID => /ListInitElement/Responsedef_ListInitElement_Menu_OnClick
  Initiator: 'MenuImport'
  Precondition:
  [*
    feedback := "No wizard instance created.";
    return not isnull( Dialog.Data() );
  *]
}
