Example #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();
                }
            }
        }
Example #2
0
        private void CommitChanges()
        {
            if (_DisplayOptions.MergeContacts != (mergeContactsCheckbox.IsChecked == true))
            {
                _DisplayOptions.MergeContacts = (mergeContactsCheckbox.IsChecked == true);
            }

            if (_DisplayOptions.HideEmptyConversations != (hideEmptyContactsCheckbox.IsChecked == true))
            {
                _DisplayOptions.HideEmptyConversations = (hideEmptyContactsCheckbox.IsChecked == true);
            }

            if (_DisplayOptions.LoadMmsAttachments != (loadMmsAttachmentsCheckbox.IsChecked == true))
            {
                _DisplayOptions.LoadMmsAttachments = (loadMmsAttachmentsCheckbox.IsChecked == true);
            }

            if (_DisplayOptions.TimeDisplayFormat != (TimeDisplayFormat)timeFormatComboBox.SelectedValue)
            {
                _DisplayOptions.TimeDisplayFormat = (TimeDisplayFormat)timeFormatComboBox.SelectedValue;
            }

            if (_DisplayOptions.ConversationSorting != (ConversationSorting)conversationSortingComboBox.SelectedValue)
            {
                _DisplayOptions.ConversationSorting = (ConversationSorting)conversationSortingComboBox.SelectedValue;
            }

            if ((phoneListBox.SelectedValue != null) && (_PhoneSelectOptions.PhoneDataPath != ((IPhoneDeviceInfo)phoneListBox.SelectedValue).BackupPath))
            {
                _PhoneSelectOptions.PhoneDataPath = ((IPhoneDeviceInfo)phoneListBox.SelectedValue).BackupPath;
            }

            _PhoneSelectOptions.PromptForPhoneChoice = (promptForPhoneCheckBox.IsChecked == true);

            _DisplayOptions.Save();
        }