private static void ConvertDisplay(IFavorite result, FavoriteConfigurationElement sourceFavorite) { IDisplayOptions display = result.Display; display.Colors = sourceFavorite.Colors; display.DesktopSize = sourceFavorite.DesktopSize; display.Width = sourceFavorite.DesktopSizeWidth; display.Height = sourceFavorite.DesktopSizeHeight; }
private static void ConvertDisplay(FavoriteConfigurationElement result, IFavorite sourceFavorite) { IDisplayOptions display = sourceFavorite.Display; result.Colors = display.Colors; result.DesktopSize = display.DesktopSize; result.DesktopSizeWidth = display.Width; result.DesktopSizeHeight = display.Height; }
public GraphWindowModel(IDisplayOptions displayOptions, IPhoneSelectOptions phoneSelectOptions) : base(displayOptions, phoneSelectOptions) { SelectedConversationIndex = NoContactSelectedIndex; SelectedGraphType = DefaultGraphType; _graphDataGenerator = new GraphDataGenerator(); _cachedCurrentGraphData = null; }
public ConversationRenderControl() { InitializeComponent(); DisplayOptions = null; ConversationTextBox = emptyRichTextBox; _renderCompleteEvent = new ManualResetEventSlim(); }
public MainWindowModelBase(IDisplayOptions displayOptions, IPhoneSelectOptions phoneSelectOptions) { DisplayOptions = displayOptions; PhoneSelectOptions = phoneSelectOptions; DeviceInfo = null; ConversationManager = null; _sortedConversationList = null; }
private void FillFavoriteDisplayOptions(IFavorite favorite) { IDisplayOptions display = favorite.Display; if (this.cmbResolution.SelectedIndex >= 0) { display.DesktopSize = (DesktopSize)this.cmbResolution.SelectedIndex; } if (this.cmbColors.SelectedIndex >= 0) { display.Colors = (Colors)this.cmbColors.SelectedIndex; } display.Width = (Int32)this.widthUpDown.Value; display.Height = (Int32)this.heightUpDown.Value; }
public OptionsDialogView(IDisplayOptions displayOptions, IPhoneSelectOptions phoneSelectOptions) { InitializeComponent(); _DisplayOptions = displayOptions; _PhoneSelectOptions = phoneSelectOptions; _GeneralOptionsData = new OptionsCategoryData("General", generalOptionsPanel); _ConversationViewOptionsData = new OptionsCategoryData("Conversation View", conversationOptionsPanel); _PhoneOptionsData = new OptionsCategoryData("Phone", phoneOptionsPanel); _CurrentCategory = OptionsCategory.General; Loaded += delegate { DisplayCurrentCategory(); InitializeFields(); }; }
private void ShowSettingsDialog_Executed(object sender, ExecutedRoutedEventArgs e) { IDisplayOptions displayOptions = _mainWindowModel.DisplayOptions; IPhoneSelectOptions phoneSelectOptions = _mainWindowModel.PhoneSelectOptions; OptionsDialogView optionsDialog = new OptionsDialogView(displayOptions, phoneSelectOptions); optionsDialog.Owner = this; optionsDialog.SelectedDevice = _deviceInfo; optionsDialog.ShowDialog(); if (optionsDialog.DialogResult == true) { if (optionsDialog.SelectedDevice != _deviceInfo) { _deviceInfo = optionsDialog.SelectedDevice; PerformRefresh(); } } }
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; }
private IConversationManager GetConversationManager(IDisplayOptions diplayOptions) { IConversationManager conversationManager; DummyContactId[] contactIds = { DummyContactId.Davola, DummyContactId.Obama, DummyContactId.NeverTexter, DummyContactId.ReliableLarry }; DummyPhoneNumberId[] messageSetIds = {DummyPhoneNumberId.DavolaCell, DummyPhoneNumberId.DavolaiPhone, DummyPhoneNumberId.ObamaCell, DummyPhoneNumberId.ReliableLarryOffice, DummyPhoneNumberId.UnknownLawnmower, DummyPhoneNumberId.UnknownEagle}; List<Contact> contacts = DummyConversationDataGenerator.GetContacts(contactIds); List<ChatRoomInformation> chatInfoItems = new List<ChatRoomInformation>(); List<TextMessage> messages = DummyConversationDataGenerator.GetMessages(messageSetIds); List<MessageAttachment> attachments = new List<MessageAttachment>(); conversationManager = new ConversationManager(contacts, messages, chatInfoItems, attachments, null); if (diplayOptions.MergeContacts) { conversationManager = new MergingConversationManager(conversationManager, null); } return conversationManager; }
private IConversationManager GetConversationManager(IDisplayOptions diplayOptions) { IConversationManager conversationManager; DummyContactId[] contactIds = { DummyContactId.Davola, DummyContactId.Obama, DummyContactId.NeverTexter, DummyContactId.ReliableLarry }; DummyPhoneNumberId[] messageSetIds = { DummyPhoneNumberId.DavolaCell, DummyPhoneNumberId.DavolaiPhone, DummyPhoneNumberId.ObamaCell, DummyPhoneNumberId.ReliableLarryOffice, DummyPhoneNumberId.UnknownLawnmower, DummyPhoneNumberId.UnknownEagle }; List <Contact> contacts = DummyConversationDataGenerator.GetContacts(contactIds); List <ChatRoomInformation> chatInfoItems = new List <ChatRoomInformation>(); List <TextMessage> messages = DummyConversationDataGenerator.GetMessages(messageSetIds); List <MessageAttachment> attachments = new List <MessageAttachment>(); conversationManager = new ConversationManager(contacts, messages, chatInfoItems, attachments, null); if (diplayOptions.MergeContacts) { conversationManager = new MergingConversationManager(conversationManager, null); } return(conversationManager); }
public ConversationWindowModel(IDisplayOptions displayOptions, IPhoneSelectOptions phoneSelectOptions) : base(displayOptions, phoneSelectOptions) { _selectedConversationIndex = NoContactSelectedIndex; }
private static Size CalculateDefaultSize(IFavorite favorite) { IDisplayOptions display = favorite.Display; return(new Size(display.Width, display.Height)); }