BatchGuy.App.CreateEAC3ToBatchForm.HandleBtnSetOutputDirectoryUserControlOpenDialogClick C# (CSharp) Méthode

HandleBtnSetOutputDirectoryUserControlOpenDialogClick() private méthode

private HandleBtnSetOutputDirectoryUserControlOpenDialogClick ( ) : void
Résultat void
        private void HandleBtnSetOutputDirectoryUserControlOpenDialogClick()
        {
            SaveFileDialog sfd = new SaveFileDialog();
            Setting setting = Program.ApplicationSettingsService.GetSettingByName(Constant.FeatureCreateEac3toBatchFileFormMKVMergeOutputDirectory);

            var fsd = new FolderSelectDialog();
            fsd.Title = "mkvmerge.exe output directory";
            if (setting != null)
                fsd.InitialDirectory = setting.Value;

            if (fsd.ShowDialog(IntPtr.Zero))
            {
                txtMKVMergeOutputPath.Text = fsd.FileName;

                OnDialogInitialDirectoryChanged(this, new DialogInitialDirectoryChangedEventArgs() { FeatureName = Constant.FeatureCreateEac3toBatchFileFormMKVMergeOutputDirectory, DirectoryPath = txtMKVMergeOutputPath.Text });
            }
        }
CreateEAC3ToBatchForm