/// <summary> /// 加载所有配置 /// </summary> public void Load() { try { #region 加载配置 this.AlarmDefine = new ConfigAlarm(); this.InputDefine = new ConfigInput(); this.OutputDefine = new ConfigOutput(); this.SystemDefine = ConfigSystem.Load(); this.UserDefine = ConfigUser.Load(); this.AxisDefine = ConfigAxis.Load(); // LoadEquipmentConfig(); #endregion } catch (Exception ex) { LogWriter.WriteException(ex); LogWriter.WriteLog(string.Format("错误:加载配置文件失败!\n异常描述:{0}\n时间:{1}", ex.Message, System.DateTime.Now.ToString("yyyyMMddhhmmss"))); } }