/// <summary> /// Add firewall rule to list /// </summary> /// <param name="pFWRule"></param> public void addRecord(FWRule pFWRule) { if (pFWRule != null) { foreach (FWRule lTmp in cRecordList) if (lTmp.ID == pFWRule.ID) throw new Exception("Firewall rule alrady exists."); cRecordList.Add(pFWRule); } notify(); }
/// <summary> /// Add firewall rule to list /// </summary> /// <param name="pFWRule"></param> public void addRecord(FWRule pFWRule) { if (pFWRule != null) { foreach (FWRule lTmp in cRecordList) { if (lTmp.ID == pFWRule.ID) { throw new Exception("Firewall rule alrady exists."); } } cRecordList.Add(pFWRule); } notify(); }