/// <summary>Whether a translation should be closed, after choosing the respective confirmation dialog.</summary> private bool ToCloseTranslationAfterWarning() { if (ExistTranslationUnsavedChanges()) { SaveConfirmationDialog dialog = new SaveTranslationOnCloseConfirmationDialog(); return(dialog.WaitForResponse()); } return(true); }
/// <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 a translation should be closed, after choosing the respective confirmation dialog.</summary> private bool ToCloseTranslationAfterWarning () { if (ExistTranslationUnsavedChanges()) { SaveConfirmationDialog dialog = new SaveTranslationOnCloseConfirmationDialog(); return dialog.WaitForResponse(); } else return true; }
/// <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; }