Exemplo n.º 1
0
 /// <summary>
 /// Loads the current instance of the <see cref="BasicConfiguration"/> class.
 /// </summary>
 public void Load()
 {
     try
     {
         m_data = m_provider.Load();
     }
     catch (Exception exc)
     {
         Log.WriteError("Failed loading configuration : {0}", exc);
     }
 }
Exemplo n.º 2
0
        public BasicConfigurationData Load()
        {
            try
            {
                BasicConfigurationData data = (BasicConfigurationData)Storage.Load(SECTION_NAME);

                if (data == null)
                {
                    data = new BasicConfigurationData();
                }

                return(data);
            }
            catch (Exception exc)
            {
                Log.WriteError("Failed loading configuration : {0}", exc);

                return(null);
            }
        }
Exemplo n.º 3
0
 public void Save(BasicConfigurationData data)
 {
     Storage.Save(data, SECTION_NAME);
 }