BatchGuy.App.CreateAviSynthFilesForm.HandlesbtnFFMSIndexOpenDialogClick C# (CSharp) Méthode

HandlesbtnFFMSIndexOpenDialogClick() private méthode

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

            if (setting != null)
                sfd.InitialDirectory = setting.Value;
            else
                sfd.InitialDirectory = @"C:\";

            sfd.Filter = "Batch File|*.bat";
            sfd.Title = "Save ffmsindex Batch File";
            sfd.ShowDialog();

            if (!string.IsNullOrEmpty(sfd.FileName))
            {
                using (FileStream fs = File.Create(sfd.FileName))
                {
                }
                txtFFMSIndexOutputDirectory.Text = sfd.FileName;
            }
        }