Esempio n. 1
0
        /// <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();
        }
Esempio n. 2
0
        /// <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();
        }