Exemple #1
0
 /// <summary>
 /// Static constructor
 /// </summary>
 static Settings()
 {
     UI = new UISettings();
     G15 = new G15Settings();
     IGB = new IGBSettings();
     Proxy = new ProxySettings(); 
     Updates = new UpdateSettings();
     Calendar = new CalendarSettings();
     Exportation = new ExportationSettings();
     Notifications = new NotificationSettings();
 }
Exemple #2
0
        internal UpdateSettings Clone()
        {
            var clone = new UpdateSettings();

            clone.CheckEVEMonVersion       = this.CheckEVEMonVersion;
            clone.CheckTimeOnStartup       = this.CheckTimeOnStartup;
            clone.MostRecentDeniedUpdgrade = this.MostRecentDeniedUpdgrade;

            foreach (var pair in this.Periods)
            {
                clone.Periods.Add(pair.Key, pair.Value);
            }
            return(clone);
        }
Exemple #3
0
        /// <summary>
        /// Static constructor.
        /// </summary>
        static Settings()
        {
            UI = new UISettings();
            G15 = new G15Settings();
            IGB = new IgbSettings();
            Proxy = new ProxySettings();
            Updates = new UpdateSettings();
            Calendar = new CalendarSettings();
            Exportation = new ExportationSettings();
            MarketPricer = new MarketPricerSettings();
            Notifications = new NotificationSettings();
            LoadoutsProvider = new LoadoutsProviderSettings();
            PortableEveInstallations = new PortableEveInstallationsSettings();
            CloudStorageServiceProvider = new CloudStorageServiceProviderSettings();

            EveMonClient.TimerTick += EveMonClient_TimerTick;
        }
        public SerializableSettings()
        {
            Plans = new List<SerializablePlan>();
            Accounts = new List<SerializableAccount>();
            Characters = new List<SerializableSettingsCharacter>();
            MonitoredCharacters = new List<MonitoredCharacterSettings>();

            APIProviders = new SerializableAPIProviders();
            Notifications = new NotificationSettings();
            Exportation = new ExportationSettings();
            Scheduler = new SerializableScheduler();
            Calendar = new CalendarSettings();
            Updates = new UpdateSettings();
            Proxy = new ProxySettings();
            IGB = new IGBSettings();
            G15 = new G15Settings();
            UI = new UISettings();
        }
Exemple #5
0
        internal UpdateSettings Clone()
        {
            var clone = new UpdateSettings();

            clone.CheckEVEMonVersion      = this.CheckEVEMonVersion;
            clone.CheckTimeOnStartup      = this.CheckTimeOnStartup;
            clone.MostRecentDeniedUpgrade = this.MostRecentDeniedUpgrade;
            clone.HttpTimeout             = this.HttpTimeout;
            clone.IgnoreNetworkStatus     = this.IgnoreNetworkStatus;
            clone.UpdateFrequency         = this.UpdateFrequency;
            clone.UseCustomUpdatesUrl     = this.UseCustomUpdatesUrl;
            clone.UpdatesUrl = this.UpdatesUrl;

            foreach (var pair in this.Periods)
            {
                clone.Periods.Add(pair.Key, pair.Value);
            }
            return(clone);
        }
Exemple #6
0
 public SerializableSettings()
 {
     m_plans = new Collection<SerializablePlan>();
     m_apiKeys = new Collection<SerializableAPIKey>();
     m_characters = new Collection<SerializableSettingsCharacter>();
     m_monitoredCharacters = new Collection<MonitoredCharacterSettings>();
     CloudStorageServiceProvider = new CloudStorageServiceProviderSettings();
     PortableEveInstallations = new PortableEveInstallationsSettings();
     Notifications = new NotificationSettings();
     APIProviders = new APIProvidersSettings();
     LoadoutsProvider = new LoadoutsProviderSettings();
     MarketPricer = new MarketPricerSettings();
     Exportation = new ExportationSettings();
     Scheduler = new SchedulerSettings();
     Calendar = new CalendarSettings();
     Updates = new UpdateSettings();
     Proxy = new ProxySettings();
     IGB = new IgbSettings();
     G15 = new G15Settings();
     UI = new UISettings();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="HttpTimeoutTroubleshooter"/> class.
        /// </summary>
        public HttpTimeoutTroubleshooter()
        {
            InitializeComponent();

            var Options = new List<TimeoutOption>();
            var updateSettings = new UpdateSettings();
            
            // lets add 10 - 60 to the list.
            for (int i = 10; i <= 60; i += 10)
            {
                string text = String.Empty;

                if (i == updateSettings.HttpTimeout)
                    text = "Default";

                if (i == Settings.Updates.HttpTimeout)
                    text = "Current";

                Options.Add(new TimeoutOption(i, text));
            }

            // if the current is set to something odd we add it and sort by Seconds
            if (!Options.Any(x => x.Seconds == Settings.Updates.HttpTimeout))
                Options.Add(new TimeoutOption(Settings.Updates.HttpTimeout, "Current"));

            // if the default is not in the list we add it
            if (!Options.Any(x => x.Seconds == updateSettings.HttpTimeout))
                Options.Add(new TimeoutOption(updateSettings.HttpTimeout, "Default"));

            Options.Sort((a, b) => a.Seconds.CompareTo(b.Seconds));


            // databind
            TimeoutDropDown.DataSource = Options;
            TimeoutDropDown.DisplayMember = "Label";
            TimeoutDropDown.ValueMember = "Seconds";
        }