/// <summary>Whether the program should be closed, after choosing the respective confirmation dialog.</summary> private bool ToCloseAfterWarning() { bool toCreate = true; if (ExistTextUnsavedChanges()) { SaveConfirmationDialog subtitleDialog = new SaveSubtitlesOnCloseFileConfirmationDialog(); toCreate = subtitleDialog.WaitForResponse(); } if (toCreate && ExistTranslationUnsavedChanges()) { SaveConfirmationDialog translationDialog = new SaveTranslationOnCloseConfirmationDialog(); toCreate = translationDialog.WaitForResponse(); } return(toCreate); }
/// <summary>Whether the program should be closed, after choosing the respective confirmation dialog.</summary> private bool ToCloseAfterWarning () { bool toCreate = true; if (ExistTextUnsavedChanges()) { SaveConfirmationDialog subtitleDialog = new SaveSubtitlesOnCloseFileConfirmationDialog(); toCreate = subtitleDialog.WaitForResponse(); } if (toCreate && ExistTranslationUnsavedChanges()) { SaveConfirmationDialog translationDialog = new SaveTranslationOnCloseConfirmationDialog(); toCreate = translationDialog.WaitForResponse(); } return toCreate; }