예제 #1
0
        /// <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;
        }
예제 #2
0
        /// <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;
        }
예제 #3
0
파일: UISettings.cs 프로젝트: Almamu/evemon
        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;
        }
예제 #4
0
        /// <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;
        }
예제 #5
0
 public TrayPopupConfigForm(TrayPopupSettings settings)
     : this()
 {
     m_settings = settings;
     cbGroupBy.Items.AddRange(m_characterGrouping);
 }
예제 #6
0
 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();
 }
예제 #7
0
        /// <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;
        }