Beispiel #1
0
 private async void ScreenCapImage_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (ScreenCapture == Adb && Adb.IsScreenCapActive && !Adb.IsScreenCapOutOfDate && Properties.Settings.Default.ScreenCapEnableTap && Adb.CurrentScreenCap != null)
     {
         Image scImage = sender as Image;
         if (scImage == null)
         {
             return;
         }
         Point point = e.MouseDevice.GetPosition((FrameworkElement)sender);
         point.X  *= Adb.CurrentScreenCap.Width / scImage.ActualWidth;
         point.Y  *= Adb.CurrentScreenCap.Height / scImage.ActualHeight;
         e.Handled = true;
         await Adb.DoTapAsync(point);
     }
 }