Пример #1
0
        /// ------------------------------------------------------------------------------------
        private string GetAudacityOrElanFile(string caption, string filter)
        {
            using (var dlg = new OpenFileDialog())
            {
                dlg.Title           = caption;
                dlg.CheckFileExists = true;
                dlg.CheckPathExists = true;
                dlg.Multiselect     = false;
                dlg.Filter          = filter + "|" + LocalizationManager.GetString(
                    "DialogBoxes.Transcription.CreateAnnotationFileDlg.AllFileTypeString",
                    "All Files (*.*)|*.*");

                return(dlg.ShowDialog() != DialogResult.OK ? null :
                       AnnotationFileHelper.CreateFileFromFile(dlg.FileName, _file.PathToAnnotatedFile));
            }
        }