示例#1
0
        private void OnMouseMove(object sender, MouseEventArgs e)
        {
            var pt = e.GetPosition(this);

            //Debug.WriteLine("OnMouseMove: width:{0}, height:{1}, x:{2}, y{3}", ActualWidth, ActualHeight, pt.X, pt.Y);
            if (Program.IsRun)
            {
                DR2API.DR2_OnMouseMove(ViewModelBase.ApiHandle, (int)ActualWidth, (int)ActualHeight, (int)pt.X, (int)pt.Y);
            }
        }
示例#2
0
        private void VideoPlayerForm_MouseMove(object sender, MouseEventArgs e)
        {
            var pt = e.Location;

            //Debug.WriteLine("OnMouseMove: width:{0}, height:{1}, x:{2}, y{3}", Width, Height, pt.X, pt.Y);
            if (Program.IsRun)
            {
                DR2API.DR2_OnMouseMove(ViewModelBase.ApiHandle, Width, Height, pt.X, pt.Y);

                if (_host._lft != null && m_x != pt.X && m_y != pt.Y)
                {
                    m_x = pt.X;
                    m_y = pt.Y;

                    _mainTimer.Start();
                    _host._lft.ftbname.Opacity = 1.0;
                    _host._lft.Show();
                }
            }
        }