// common open for all allFiles
 internal override void OpenFileUI()
 {
     this.openFileDialog.InitialDirectory = FileSelector.GetFolderForFileSelection(this.FileName);
     using (new AbandonTopPosition(VideoForm.CurrentForm))
     {
         using (new FilterFileDialog(this.openFileDialog))
         {
             this.openFileDialog.Filter  = GlobalOptions.GetFileFilterForVideo(false);
             this.openFileDialog.Filter += "|" + GlobalOptions.GetFileFilterForSubtitles(false);
             this.openFileDialog.Filter += "|" + GlobalOptions.GetFileFilterForLesson(false);
             this.openFileDialog.Filter += "|" + GlobalOptions.GetFileFilterForText(false);
             this.openFileDialog.Filter += GlobalOptions.Allfiles;
             if (openFileDialog.ShowDialog() == DialogResult.OK)
             {
                 CheckAndAssignFileNameFormUI(openFileDialog.FileName);
             }
         }
     }
 }
Esempio n. 2
0
 protected virtual void AssignFilterForTextFile()
 {
     this.openFileDialog.Filter = GlobalOptions.GetFileFilterForSubtitles(true);
 }
Esempio n. 3
0
 void btSubtitleOpen_Click(object sender, EventArgs e)
 {
     GetFileName(GlobalOptions.GetFileFilterForSubtitles(true), this.txSubtFile);
 }