Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public MyDocumentFormat GetSelectedDocumentFormat()
        {
            MyDocumentFormatItem item = (MyDocumentFormatItem)_formatComboBox.SelectedItem;

            return(item.FormatType);
        }