private string BuildOutputDocumentPathAndFileName() { // Get the server folder URI string folderPath = _sharePointBrowserControl.GetCurrentFolderPath(false); MyDocumentFormat format = (MyDocumentFormat)_demoOptions.DocumentFormatIndex; string extension = MyDocumentFormatItem.GetExtension(format); string name = System.IO.Path.GetFileNameWithoutExtension(_demoOptions.ImageDocumentFileName); string outputDocumentPathAndFileName = System.IO.Path.Combine(folderPath, name); outputDocumentPathAndFileName = System.IO.Path.ChangeExtension(outputDocumentPathAndFileName, extension); return(outputDocumentPathAndFileName); }
public MyDocumentFormat GetSelectedDocumentFormat() { MyDocumentFormatItem item = (MyDocumentFormatItem)_formatComboBox.SelectedItem; return(item.FormatType); }