public string Export(IVBComponent component) { if (!Directory.Exists(ApplicationConstants.RUBBERDUCK_TEMP_PATH)) { Directory.CreateDirectory(ApplicationConstants.RUBBERDUCK_TEMP_PATH); } var fileName = component.ExportAsSourceFile(ApplicationConstants.RUBBERDUCK_TEMP_PATH, true, false); return(File.Exists(fileName) ? fileName : null); }
public string Export(IVBComponent component, bool tempFile = true) { TempFile = tempFile; return(component.ExportAsSourceFile(ExportPath, tempFile)); }