/// <summary> /// 预置位轮询 /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void PreSet_Cruise(object sender, EventArgs args) { if (null != PreSetCruiseEvent) { CruiseEventArgs e = new CruiseEventArgs(); if (contextMenuStrip1.Items["PreSetCruise"].Text == "预置位轮询") { contextMenuStrip1.Items["PreSetCruise"].Text = "停止预置位轮询"; isPreSetCruising = true; } else { e.IsStop = true; contextMenuStrip1.Items["PreSetCruise"].Text = "预置位轮询"; isPreSetCruising = false; } PreSetCruiseEvent(this, e); } }
/// <summary> /// DVR轮询 /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void DVR_Cruise(object sender, EventArgs args) { if (null != DVRCruiseEvnet) { CruiseEventArgs e = new CruiseEventArgs(); if (contextMenuStrip1.Items["DVRCruise"].Text == "DVR轮询") { e.IsStop = false; contextMenuStrip1.Items["DVRCruise"].Text = "停止DVR轮询"; isDVRCruising = true; } else { e.IsStop = true; contextMenuStrip1.Items["DVRCruise"].Text = "DVR轮询"; isDVRCruising = false; } DVRCruiseEvnet(this, e); } }
/// <summary> /// Ԥ��λ��ѯ /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void ViedoScreen_PreSetCruiseEvent(object sender, CruiseEventArgs args) { if (null != PreSetCruiseEvent) { PreSetCruiseEvent(sender, args); } }
/// <summary> /// DVR��ѯ�¼� /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void ViedoScreen_DVRCruiseEvnet(object sender, CruiseEventArgs args) { if (null != DVRCruiseEvnet) { DVRCruiseEvnet(sender, args); } }
//Ԥ��λ��ѯ private void WatchViedoPanel_PreSetCruiseEvent(object sender, CruiseEventArgs e) { }
//��Ƶ��ѯ private void WatchViedoPanel_DVRCruiseEvnet(object sender, CruiseEventArgs e) { }