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); }
public void InformMissingActualExeFile(string missingFileName, string optionsName) { MessageBox.Show( CommonConstants.InformMissingActualExeFile(missingFileName, optionsName), caption, MessageBoxButtons.OK, MessageBoxIcon.Question); }