예제 #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        void InitPerformer()
        {
            _CommonAppConfig = CommonAppConfig.GetInstance();

            timer1.Interval = 5000;
            timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed);
        }
예제 #2
0
 /// <summary>
 /// 保存配置
 /// </summary>
 public void Save()
 {
     CommonAppConfig.SaveConfig(instance, ConfigXmlPath);
 }
예제 #3
0
 public static CommonAppConfig GetInstance()
 {
     instance = new CommonAppConfig();
     return(instance);
 }