///// <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; } }
/// <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); }
/// <summary> /// ɾ����Ƶ /// </summary> /// <param name="record"></param> /// <returns></returns> public bool DeleteRecord(VideoRecord record) { throw new System.NotImplementedException(); }