/// <summary> /// Initializes a new instance of the <see cref="UISettings"/> class. /// </summary> public UISettings() { MainWindowCloseBehaviour = CloseBehaviour.Exit; WindowLocations = new ModifiedSerializableDictionary <string, WindowLocationSettings>(); Splitters = new ModifiedSerializableDictionary <string, int>(); m_confirmedTips = new Collection <string>(); CertificateDataBrowser = new CertificateBrowserSettings(); BlueprintDataBrowser = new BlueprintBrowserSettings(); SkillDataBrowser = new SkillBrowserSettings(); ShipDataBrowser = new ShipBrowserSettings(); ItemDataBrowser = new ItemBrowserSettings(); CertificateCharacterDataBrowser = new CertificateBrowserSettings(); BlueprintCharacterDataBrowser = new BlueprintBrowserSettings(); SkillCharacterDataBrowser = new SkillBrowserSettings(); ShipCharacterDataBrowser = new ShipBrowserSettings(); ItemCharacterDataBrowser = new ItemBrowserSettings(); CertificateBrowser = new CertificateBrowserSettings(); BlueprintBrowser = new BlueprintBrowserSettings(); SkillBrowser = new SkillBrowserSettings(); ShipBrowser = new ShipBrowserSettings(); ItemBrowser = new ItemBrowserSettings(); SystemTrayTooltip = new TrayTooltipSettings(); SkillPieChart = new SkillPieChartSettings(); SystemTrayPopup = new TrayPopupSettings(); MainWindow = new MainWindowSettings(); PlanWindow = new PlanWindowSettings(); Scheduler = new SchedulerUISettings(); UseStoredSearchFilters = true; }
/// <summary> /// Initializes a new instance of the <see cref="UISettings"/> class. /// </summary> public UISettings() { MainWindowCloseBehaviour = CloseBehaviour.Exit; WindowLocations = new ModifiedSerializableDictionary<string, WindowLocationSettings>(); Splitters = new ModifiedSerializableDictionary<string, int>(); m_confirmedTips = new Collection<string>(); CertificateDataBrowser = new CertificateBrowserSettings(); BlueprintDataBrowser = new BlueprintBrowserSettings(); SkillDataBrowser = new SkillBrowserSettings(); ShipDataBrowser = new ShipBrowserSettings(); ItemDataBrowser = new ItemBrowserSettings(); CertificateCharacterDataBrowser = new CertificateBrowserSettings(); BlueprintCharacterDataBrowser = new BlueprintBrowserSettings(); SkillCharacterDataBrowser = new SkillBrowserSettings(); ShipCharacterDataBrowser = new ShipBrowserSettings(); ItemCharacterDataBrowser = new ItemBrowserSettings(); CertificateBrowser = new CertificateBrowserSettings(); BlueprintBrowser = new BlueprintBrowserSettings(); SkillBrowser = new SkillBrowserSettings(); ShipBrowser = new ShipBrowserSettings(); ItemBrowser = new ItemBrowserSettings(); SystemTrayTooltip = new TrayTooltipSettings(); SkillPieChart = new SkillPieChartSettings(); SystemTrayPopup = new TrayPopupSettings(); MainWindow = new MainWindowSettings(); PlanWindow = new PlanWindowSettings(); Scheduler = new SchedulerUISettings(); UseStoredSearchFilters = true; }
public UISettings() { MainWindowCloseBehaviour = CloseBehaviour.Exit; WindowLocations = new SerializableDictionary <string, SerializableRectangle>(); Splitters = new SerializableDictionary <string, int>(); CertificateBrowser = new CertificateBrowserSettings(); SystemTrayTooltip = new TrayTooltipSettings(); SkillPieChart = new SkillPieChartSettings(); SystemTrayPopup = new TrayPopupSettings(); SkillBrowser = new SkillBrowserSettings(); ShipBrowser = new ShipBrowserSettings(); ItemBrowser = new ItemBrowserSettings(); MainWindow = new MainWindowSettings(); PlanWindow = new PlanWindowSettings(); Scheduler = new SchedulerUISettings(); ConfirmedTips = new List <String>(); UseStoredSearchFilters = true; }
/// <summary> /// Constructor /// </summary> public UISettings() { MainWindowCloseBehaviour = CloseBehaviour.Exit; WindowLocations = new SerializableDictionary<string, SerializableRectangle>(); Splitters = new SerializableDictionary<string, int>(); CertificateBrowser = new CertificateBrowserSettings(); BlueprintBrowser = new BlueprintBrowserSettings(); SystemTrayTooltip = new TrayTooltipSettings(); SkillPieChart = new SkillPieChartSettings(); SystemTrayPopup = new TrayPopupSettings(); SkillBrowser = new SkillBrowserSettings(); ShipBrowser = new ShipBrowserSettings(); ItemBrowser = new ItemBrowserSettings(); MainWindow = new MainWindowSettings(); PlanWindow = new PlanWindowSettings(); Scheduler = new SchedulerUISettings(); ConfirmedTips = new List<String>(); UseStoredSearchFilters = true; ShowTextInToolStrip = true; }
public TrayPopupConfigForm(TrayPopupSettings settings) : this() { m_settings = settings; cbGroupBy.Items.AddRange(m_characterGrouping); }
private void DisplayConfig(TrayPopupSettings config) { cbHideNotTraining.Checked = !config.ShowCharNotTraining; cbGroupBy.SelectedIndex = (int)config.GroupBy; UpdateDisplayOrders(); if (cbHideNotTraining.Checked) { cbDisplayOrder1.SelectedItem = m_sortOrder[(int)config.PrimarySortOrder]; } else { if (config.GroupBy == TrayPopupGrouping.None) { cbDisplayOrder1.SelectedItem = m_sortOrder[(int)config.PrimarySortOrder]; } else if (config.GroupBy == TrayPopupGrouping.Account) { cbDisplayOrder1.SelectedItem = m_sortOrder[(int)config.PrimarySortOrder]; } else { cbDisplayOrder1.SelectedItem = m_sortOrder[(int)config.PrimarySortOrder]; cbDisplayOrder2.SelectedItem = m_sortOrder[(int)config.SecondarySortOrder]; } } cbShowSkill.Checked = config.ShowSkillInTraining; cbShowTimeToCompletion.Checked = config.ShowRemainingTime; cbShowCompletionTime.Checked = config.ShowCompletionTime; cbShowSkillQueueTrainingTime.Checked = config.ShowSkillQueueTrainingTime; cbHighLightConflicts.Checked = config.HighlightConflicts; cbShowWallet.Checked = config.ShowWallet; cbShowPortrait.Checked = config.ShowPortrait; cbPortraitSize.Items.AddRange(m_portraitSize); cbPortraitSize.SelectedIndex = (int)config.PortraitSize; cbShowWarning.Checked = config.ShowWarning; cbShowServerStatus.Checked = config.ShowServerStatus; cbShowEveTime.Checked = config.ShowEveTime; cbIndentGroupedAccounts.Checked = config.IndentGroupedAccounts; cbUseIncreasedContrast.Checked = config.UseIncreasedContrast; UpdateEnables(); }
/// <summary> /// Constructor used in-code. /// </summary> /// <param name="character"></param> /// <param name="settings"></param> public OverviewItem(Character character, TrayPopupSettings settings) : this(character, settings.PortraitSize) { m_showConflicts = settings.HighlightConflicts; m_showCompletionTime = settings.ShowCompletionTime; m_showRemainingTime = settings.ShowRemainingTime; m_showSkillInTraining = settings.ShowSkillInTraining; m_showWalletBalance = settings.ShowWallet; m_showPortrait = settings.ShowPortrait; m_showSkillQueueTrainingTime = settings.ShowSkillQueueTrainingTime; m_tooltip = true; // Initializes colors if (!Settings.UI.SystemTrayPopup.UseIncreasedContrast) return; lblBalance.ForeColor = Color.Black; lblRemainingTime.ForeColor = Color.Black; lblSkillInTraining.ForeColor = Color.Black; lblCompletionTime.ForeColor = Color.Black; m_lightForeColor = lblCompletionTime.ForeColor; }