예제 #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();
            MarketPricer = new MarketPricerSettings();
            Notifications = new NotificationSettings();
            LoadoutsProvider = new LoadoutsProviderSettings();
            PortableEveInstallations = new PortableEveInstallationsSettings();
            CloudStorageServiceProvider = new CloudStorageServiceProviderSettings();

            EveMonClient.TimerTick += EveMonClient_TimerTick;
        }
예제 #2
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();
 }
예제 #3
0
        /// <summary>
        /// Imports the provided serialization object.
        /// </summary>
        private static void Import()
        {
            EveMonClient.Trace("begin");

            // When null, we just reset
            if (s_settings == null)
                s_settings = new SerializableSettings();

            try
            {
                // API providers
                EveMonClient.APIProviders.Import(s_settings.APIProviders);

                // User settings
                UI = s_settings.UI;
                G15 = s_settings.G15;
                IGB = s_settings.IGB;
                Proxy = s_settings.Proxy;
                Updates = s_settings.Updates;
                Calendar = s_settings.Calendar;
                Exportation = s_settings.Exportation;
                MarketPricer = s_settings.MarketPricer;
                Notifications = s_settings.Notifications;
                Compatibility = s_settings.Compatibility;
                LoadoutsProvider = s_settings.LoadoutsProvider;
                PortableEveInstallations = s_settings.PortableEveInstallations;
                CloudStorageServiceProvider = s_settings.CloudStorageServiceProvider;

                // Scheduler
                Scheduler.Import(s_settings.Scheduler);
            }
            finally
            {
                EveMonClient.Trace("done");

                // Notify the subscribers
                EveMonClient.OnSettingsChanged();
            }
        }