private bool DoBackupWithConfirmation() { if (!_backupMgr.FullBackupLocationExists) { string warningMessage = generalResourceManager.GetString("NoBackupsWarning"); if (string.IsNullOrEmpty(Properties.Settings.Default.EncryptionPassword)) { warningMessage += generalResourceManager.GetString("NoBackupsWarningDetail_NoPassword"); } else { warningMessage += generalResourceManager.GetString("NoBackupsWarningDetail_WithPassword"); } DialogResult responseToNewBackupLocationQuestion = MessageBox.Show(warningMessage, generalResourceManager.GetString("NoBackupsTitle"), MessageBoxButtons.YesNo); //if the user did not respond that they are OK with it, then stop. if (responseToNewBackupLocationQuestion != DialogResult.Yes) { return(false); } } return(_backupMgr.BackUp()); }