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

FlickrConfigurationManager.cs

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

namespace FlickrNet
{
      /// <summary>
      /// Summary description for FlickrConfigurationManager.
      /// </summary>
00010       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 );
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index