Esempio n. 1
0
        private void ShowTextsOutOfDateWarningIfNeeded()
        {
            if (IsOutOfDateWarningNeeded(DateTime.Today, _deviceInfo.LastSync, _displayOptions))
            {
                SyncTroubleshootingDialogView syncTroubleshootingDialog = new SyncTroubleshootingDialogView();
                syncTroubleshootingDialog.ShowDialog();
                bool promptForSyncTroubleshooting;
                if (syncTroubleshootingDialog.SuppressOutOfDateWarnings)
                {
                    promptForSyncTroubleshooting = false;
                }
                else
                {
                    promptForSyncTroubleshooting = true;
                }

                if (promptForSyncTroubleshooting != _displayOptions.PromptForSyncTroubleshooting)
                {
                    _displayOptions.PromptForSyncTroubleshooting = promptForSyncTroubleshooting;
                    _displayOptions.Save();
                }
            }
        }
Esempio n. 2
0
        private void ShowTextsOutOfDateWarningIfNeeded()
        {
            if (IsOutOfDateWarningNeeded(DateTime.Today, _deviceInfo.LastSync, _displayOptions))
            {
                SyncTroubleshootingDialogView syncTroubleshootingDialog = new SyncTroubleshootingDialogView();
                syncTroubleshootingDialog.ShowDialog();
                bool promptForSyncTroubleshooting;
                if (syncTroubleshootingDialog.SuppressOutOfDateWarnings)
                {
                    promptForSyncTroubleshooting = false;
                }
                else
                {
                    promptForSyncTroubleshooting = true;
                }

                if (promptForSyncTroubleshooting != _displayOptions.PromptForSyncTroubleshooting)
                {
                    _displayOptions.PromptForSyncTroubleshooting = promptForSyncTroubleshooting;
                    _displayOptions.Save();
                }
            }
        }