/// <summary> /// 初始化 /// </summary> void InitPerformer() { _CommonAppConfig = CommonAppConfig.GetInstance(); timer1.Interval = 5000; timer1.Elapsed += new System.Timers.ElapsedEventHandler(timer1_Elapsed); }
/// <summary> /// 保存配置 /// </summary> public void Save() { CommonAppConfig.SaveConfig(instance, ConfigXmlPath); }
public static CommonAppConfig GetInstance() { instance = new CommonAppConfig(); return(instance); }