Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Exports data to a serialization object.
 /// </summary>
 /// <returns></returns>
 internal static SerializableScheduler Export()
 {
     var serial = new SerializableScheduler();
     foreach (ScheduleEntry entry in s_schedule)
     {
         if (!entry.Expired)
             serial.Entries.Add(entry.Export());
     }
     return serial;
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Imports data from the given serialization object.
        /// </summary>
        /// <param name="serial"></param>
        internal static void Import(SerializableScheduler serial)
        {
            s_schedule.Clear();
            foreach (SerializableScheduleEntry serialEntry in serial.Entries)
            {
                if (serialEntry is SerializableSimpleScheduleEntry)
                {
                    s_schedule.Add(new SimpleScheduleEntry(serialEntry as SerializableSimpleScheduleEntry));
                }
                else
                {
                    s_schedule.Add(new RecurringScheduleEntry(serialEntry as SerializableRecurringScheduleEntry));
                }
            }

            // Notify to subscribers
            EveClient.OnSchedulerChanged();
        }