///// <summary>
        ///// ��IP����
        ///// </summary>
        ///// <param name="deviceIP">���</param>
        ///// <returns></returns>
        //public Record FindByIP(string deviceIP)
        //{
        //    foreach (Record device in List)
        //    {
        //        if (device.DeviceIP == deviceIP)
        //        {
        //            return device;
        //        }
        //    }
        //    return null;
        //}
        /// <summary>
        /// �޸�
        /// </summary>
        /// <param name="recordID">ID</param>
        /// <param name="record"></param>
        /// <returns></returns>
        public bool UpdateByID(int recordID, VideoRecord record)
        {
            if (record == null) throw new ArgumentNullException("device" + "�б��޸�ʱΪ��");
            VideoRecord _record = FindByID(recordID);
            if (_record != null)
            {
                // ReSharper disable RedundantAssignment
                record = _record;
                // ReSharper restore RedundantAssignment
                return true;
            }
            // ReSharper disable RedundantIfElseBlock
            else
            // ReSharper restore RedundantIfElseBlock
            {
                return false;

            }
        }
Example #2
0
 /// <summary>
 /// ������Ƶ
 /// </summary>
 /// <param name="record"></param>
 /// <returns></returns>
 public string SearchRecord(VideoRecord record)
 {
     throw new System.NotImplementedException();
 }
 /// <summary>
 /// ���
 /// </summary>
 /// <param name="record"></param>
 public void Add(VideoRecord record)
 {
     Num = List.Add(record);
 }
Example #4
0
 /// <summary>
 /// ɾ����Ƶ
 /// </summary>
 /// <param name="record"></param>
 /// <returns></returns>
 public bool DeleteRecord(VideoRecord record)
 {
     throw new System.NotImplementedException();
 }