Exemplo n.º 1
0
 private void PlayBackMouseDown(object sender, MouseEventArgs e)
 {
     if (CurVideo.CameraType == 4)
     {
         UCVideo video = sender as UCVideo;
         //int tag = Convert.ToInt32(video.Tag);
         EaglePalyBackVideo   = video;
         m_strPlayBackPoint.x = (e.X - video.Pic.Left);
         m_strPlayBackPoint.y = (e.Y - video.Pic.Top);
         m_bEagleMoved        = true;
         video.Focus();
         video.Pic.Focus();
         //ucVideoPlayBack.Focus();
     }
 }
Exemplo n.º 2
0
        private void MouseDown(object sender, MouseEventArgs e)
        {
            UCVideo video     = sender as UCVideo;
            int     tag       = Convert.ToInt32(video.Tag);
            int     channelno = video.ChannelNo;

            if (dicChannelType.ContainsKey(channelno))
            {
                if (dicChannelType[channelno] == EnumChannelType.EagleChannel)
                {
                    EagleVideo = video;
                }
                else
                {
                    EagleVideo = null;
                    return;
                }
            }
            m_strPrePoint.x = (e.X - video.Pic.Left);
            m_strPrePoint.y = (e.Y - video.Pic.Top);
            m_bMoved        = true;
            video.Focus();
        }