public void SaveAsPDF()
		{
			if (!MainController.Instance.CheckPowerPointRunning(
				() => MainController.Instance.PopupMessages.ShowWarningQuestion(String.Format("PowerPoint is required to run this application.{0}Do you want to go ahead and open PowerPoint?", Environment.NewLine)) == DialogResult.Yes)
				) return;
			using (var form = new FormSaveAsPDF())
			{
				var result = form.ShowDialog(MainController.Instance.MainForm);
				var wholeFile = form.WholeFile;

				if (result == DialogResult.Cancel) return;
				var destinationFileName = Path.Combine(Path.GetTempPath(), PowerPointLink.NameWithoutExtension + ".pdf");

				MainController.Instance.ProcessManager.Run(
					"Saving as PDF...",
					cancellationToken =>
					{
						PowerPointSingleton.Instance.OpenSlideSourcePresentation(_tempCopy);
						PowerPointSingleton.Instance.ExportSlideAsPdf(wholeFile ? -1 : SelectedThumbnail.Index, destinationFileName);

					});

				LinkManager.SaveFile("Save PDF as", new FileInfo(destinationFileName));
			}
		}
		private void barButtonItemSaveAsPDF_ItemClick(object sender, ItemClickEventArgs e)
		{
			using (var form = new FormSaveAsPDF())
			{
				var result = form.ShowDialog(this);
				var wholeFile = form.WholeFile;

				if (result == DialogResult.Cancel) return;
				var destinationFileName = Path.Combine(Path.GetTempPath(), PowerPointLink.NameWithoutExtension + ".pdf");

				MainController.Instance.ProcessManager.Run(
					"Saving as PDF...",
					cancellationToken =>
						PowerPointSingleton.Instance.ExportSlideAsPdf(
						wholeFile ? -1 : (comboBoxEditSlides.SelectedIndex + 1),
						destinationFileName));

				LinkManager.SaveFile("Save PDF as", new FileInfo(destinationFileName));
			}
		}
		private void barButtonItemSaveAsPDF_ItemClick(object sender, ItemClickEventArgs e)
		{
			if (!CheckPowerPointRunning()) return;
			using (var form = new FormSaveAsPDF())
			{
				var result = form.ShowDialog(this);
				var wholeFile = form.WholeFile;

				if (result == DialogResult.Cancel) return;
				var destinationFileName = Path.Combine(Path.GetTempPath(), PowerPointLink.NameWithoutExtension + ".pdf");

				MainController.Instance.ProcessManager.Run(
					"Saving as PDF...",
					cancellationToken =>
					{
						PowerPointSingleton.Instance.OpenSlideSourcePresentation(_tempFileCopy);
						PowerPointSingleton.Instance.ExportSlideAsPdf(wholeFile ? -1 : SelectedThumbnail.Index, destinationFileName);

					});

				LinkManager.SaveFile("Save PDF as", new FileInfo(destinationFileName));
			}
		}