예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            _currentView = DefaultApplicationView;
            _conversationManager = null;
            DisplayOptions options = new DisplayOptions();
            _displayOptions = options as IDisplayOptions;
            _displayOptions.TimeDisplayFormatPropertyChanged += OnTimeDisplayFormatPropertyChanged;
            _displayOptions.HideEmptyConversationsPropertyChanged += OnHideEmptyConversationsPropertyChanged;
            _displayOptions.MergeContactsPropertyChanged += OnMergeContactsPropertyChanged;
            _displayOptions.LoadMmsAttachmentsPropertyChanged += OnLoadMmsAttachmentsPropertyChanged;
            _displayOptions.ConversationSortingPropertyChanged += OnConversationSortingPropertyChanged;
            _phoneSelectOptions = options as IPhoneSelectOptions;

            _deviceInfo = null;

            conversationRenderControl.DisplayOptions = _displayOptions;
            conversationRenderControl.findBar.FindModel = new FindDialogModel(this);

            Loaded += OnLoaded;
        }