private void Load()
        {
            if (File.Exists(CONFIG))
            {
                using (var stringReader = new StringReader(File.ReadAllText(CONFIG))) {
                    using (var xmlReader = XmlReader.Create(stringReader)) {
                        analytics = analyticsSerialiser.Deserialize(xmlReader) as Configuration;
                    }
                }
            }
            else
            {
                analytics = new Configuration();
            }

            notifications = new NotificationsConfigurator();
            ads           = new AdsConfigurator();
        }
Esempio n. 2
0
 private void Load()
 {
     iOS           = iOSConfiguration.Load();
     notifications = new NotificationsConfigurator();
 }