public PersistOptionsDto PromptForActualExeFile(string originalPathToFile)
        {
            var saveSettingsDto = new PersistOptionsDto();

            var box = MessageBox.Show(
                CommonConstants.PromptForActualExeFile(originalPathToFile),
                caption,
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Question);

            switch (box)
            {
            case DialogResult.Yes:
                var resultAndNamePicked = BrowseFileHelper.BrowseToFileLocation(executableFileToBrowseFor);
                if (resultAndNamePicked.DialogResult == DialogResult.OK)
                {
                    SetSaveSettingsDto(saveSettingsDto, resultAndNamePicked.FileNameChosen);
                }
                break;

            case DialogResult.No:
                SetSaveSettingsDto(saveSettingsDto, originalPathToFile);
                break;
            }

            return(saveSettingsDto);
        }
 private void SetSaveSettingsDto(PersistOptionsDto saveSettingsDto, string fileName)
 {
     saveSettingsDto.ValueToPersist = fileName;
     saveSettingsDto.Persist        = true;
 }