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(); } }
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(); }