Beispiel #1
0
        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);
        }
Beispiel #2
0
 public string Export(IVBComponent component, bool tempFile = true)
 {
     TempFile = tempFile;
     return(component.ExportAsSourceFile(ExportPath, tempFile));
 }