Ejemplo n.º 1
0
        /// <summary>
        /// Static constructor.
        /// </summary>
        static Settings()
        {
            SSOClientID     = string.Empty;
            SSOClientSecret = string.Empty;
            UI                          = new UISettings();
            G15                         = new G15Settings();
            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;
        }
Ejemplo n.º 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();
     G15   = new G15Settings();
     UI    = new UISettings();
 }
Ejemplo n.º 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 settings
                SSOClientID     = s_settings.SSOClientID ?? string.Empty;
                SSOClientSecret = s_settings.SSOClientSecret ?? string.Empty;

                // User settings
                UI                          = s_settings.UI;
                G15                         = s_settings.G15;
                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();
            }
        }