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

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