private void exportTildaPresentation_Click(object sender, RibbonControlEventArgs e) { PowerPoint.Presentation currentPreso = Settings.ActivePresentation(); setUpFolders(); System.IO.File.WriteAllText(Settings.outputPath + Path.DirectorySeparatorChar + "settings.js", Settings.PresoSettingsToJS()); String js = Settings.PresoSettingsToJS(); foreach (PowerPoint.Slide currentSlide in currentPreso.Slides) { TildaSlide slide = new TildaSlide(currentSlide); js += "preso.slides.push(" + slide.exportSlide() + ");"; } export(js); cleanUpFolders(); MessageBox.Show("Saved :)"); }