private bool AskToSaveUnsaved()
        {
            if (!UnsavedChanges || uninstallListEditor1.CurrentList == null)
            {
                return(true);
            }

            switch (MessageBoxes.AskToSaveUninstallList())
            {
            case MessageBoxes.PressedButton.Cancel:
                return(false);

            case MessageBoxes.PressedButton.Yes:
                return(ShowSaveDialog());

            case MessageBoxes.PressedButton.No:
                return(true);

            default:
                throw new InvalidEnumArgumentException();
            }
        }