コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 /// <summary>
 /// Ԥ��λ��ѯ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void ViedoScreen_PreSetCruiseEvent(object sender, CruiseEventArgs args)
 {
     if (null != PreSetCruiseEvent)
     {
         PreSetCruiseEvent(sender, args);
     }
 }
コード例 #4
0
 /// <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);
     }
 }
コード例 #5
0
 //Ԥ��λ��ѯ
 private void WatchViedoPanel_PreSetCruiseEvent(object sender, CruiseEventArgs e)
 {
 }
コード例 #6
0
 //��Ƶ��ѯ
 private void WatchViedoPanel_DVRCruiseEvnet(object sender, CruiseEventArgs e)
 {
 }