public RouteRedirectRangeT74(RedirectSettingGroup group ) : base() { this.group = group; this.devName = group.devName; this.m_alarm_type = AlarmType.TRAFFIC; this.m_class = 173; try { // this.m_eventmode = Global.getEventMode(m_class); this.m_eventmode = Global.getEventModeBySectionID(this.getSectionId(), this.m_class, ref this.IsLock, ref this.description); this.EventId = Global.getEventId(); } catch(Exception ex) { this.m_eventmode = EventMode.DontCare; RemoteInterface.Util.SysLog("evterr.log", ex.Message + "," + ex.StackTrace); } }
public RedirectSettingGroup AddRoutingSetting(string devName, int displayPart, string lineid, string dir, int start_mileage, int end_mileage, bool isXml) { if (!RedirectSettingGroups.ContainsKey(devName)) { RedirectSettingGroup group = new RedirectSettingGroup(devName); group.AddRountDetail(new RedirSetting(displayPart, lineid, dir, start_mileage, end_mileage, isXml)); RedirectSettingGroups.Add(devName, group); return group; } else { RedirectSettingGroups[devName].AddRountDetail(new RedirSetting(displayPart, lineid, dir, start_mileage, end_mileage, isXml)); return null; } }