///// <summary>
        ///// ��Name���ұ���Դ
        ///// </summary>
        ///// <param name="alarmRootName">����Դ���</param>
        ///// <returns></returns>
        //public IAlarmRoot FindByName(string alarmRootName)
        //{
        //    foreach (IAlarmRoot alarmRoot in List)
        //    {
        //        if (alarmRoot.UserName == alarmRootName)
        //        {
        //            return alarmRoot;
        //        }
        //    }
        //    return null;
        //}
        /// <summary>
        /// �޸�
        /// </summary>
        /// <param name="alarmRootToString">����ԴID</param>
        /// <param name="alarmRoot">����Դ</param>
        /// <returns></returns>
        public bool UpdateByHashkey(string alarmRootToString, IAlarmRoot alarmRoot)
        {
            if (alarmRoot == null) throw new ArgumentNullException("alarmRoot" + "����Դ�б��޸�ʱ����ԴΪ��");
            IAlarmRoot _alarmRoot = FindByHashkey(alarmRootToString);
            if (_alarmRoot != null)
            {
                // ReSharper disable RedundantAssignment
                alarmRoot = _alarmRoot;
                // ReSharper restore RedundantAssignment
                return true;
            }
            // ReSharper disable RedundantIfElseBlock
            else
            // ReSharper restore RedundantIfElseBlock
            {
                return false;

            }
        }
 /// <summary>
 /// ��ӱ���Դ
 /// </summary>
 /// <param name="alarmRoot">����Դ</param>
 public void Add(IAlarmRoot alarmRoot)
 {
     Num = List.Add(alarmRoot);
 }