Logo Search packages:      
Sourcecode: f-spot version File versions

FlickrConfigurationManager.cs

using System;
using System.Configuration;
using System.Xml;

#if !WindowsCE
namespace FlickrNet
{
      /// <summary>
      /// Summary description for FlickrConfigurationManager.
      /// </summary>
00011       internal class FlickrConfigurationManager : IConfigurationSectionHandler
      {
            private static string ConfigSection = "flickrNet";
            private static FlickrConfigurationSettings settings;

            public FlickrConfigurationManager()
            {
            }

            public static FlickrConfigurationSettings Settings
            {
                  get
                  {
                        if( settings == null )
                        {
                              settings = (FlickrConfigurationSettings)ConfigurationSettings.GetConfig( ConfigSection );
                        }

                        return settings;
                  }
            }

            public object Create(object parent, object configContext, XmlNode section)
            {
                  ConfigSection = section.Name;
                  return new FlickrConfigurationSettings( section );
            }
      }
}
#endif

Generated by  Doxygen 1.6.0   Back to index