public RouteRedirectRange(RedirectSettingGroup group ) : base() { this.group = group; this.devName = group.devName; this.m_alarm_type = AlarmType.TRAFFIC; this.m_class = 48; try { this.m_eventmode = Global.getEventMode(m_class); this.EventId = Global.getEventId(); } catch(Exception ex) { this.m_eventmode = EventMode.DontCare; RemoteInterface.Util.SysLog("evterr.txt", 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; } }