Пример #1
0
        /// <summary>
        /// 静态构造函数初始化相应实例和定时器
        /// </summary>
        static PhotoConfigs()
        {
            m_configinfo = PhotoConfigFileManager.LoadConfig();

            generalConfigTimer.AutoReset = true;
            generalConfigTimer.Enabled   = true;
            generalConfigTimer.Elapsed  += new System.Timers.ElapsedEventHandler(Timer_Elapsed);
            generalConfigTimer.Start();
        }
Пример #2
0
 /// <summary>
 /// 重设配置类实例
 /// </summary>
 public static void ResetConfig()
 {
     m_configinfo = PhotoConfigFileManager.LoadConfig();
 }