Exemple #1
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();
 }
Exemple #2
0
        /// <summary>
        /// Imports data from the given serialization object.
        /// </summary>
        /// <param name="serial"></param>
        internal static void Import(SchedulerSettings serial)
        {
            s_schedule.Clear();
            foreach (SerializableScheduleEntry serialEntry in serial.Entries)
            {
                SerializableRecurringScheduleEntry serialReccuringEntry= serialEntry as SerializableRecurringScheduleEntry;
                if (serialReccuringEntry != null)
                    s_schedule.Add(new RecurringScheduleEntry(serialReccuringEntry));
                else
                    s_schedule.Add(new SimpleScheduleEntry(serialEntry));
            }

            // Notify to subscribers
            EveMonClient.OnSchedulerChanged();
        }
Exemple #3
0
 /// <summary>
 /// Exports data to a serialization object.
 /// </summary>
 /// <returns></returns>
 internal static SchedulerSettings Export()
 {
     SchedulerSettings serial = new SchedulerSettings();
     foreach (ScheduleEntry entry in s_schedule.Where(entry => !entry.Expired))
     {
         serial.Entries.Add(entry.Export());
     }
     return serial;
 }