nature_net.MainWindow.reddot_PreviewTouchDown C# (CSharp) Метод

reddot_PreviewTouchDown() приватный Метод

private reddot_PreviewTouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void
sender object
e System.Windows.Input.TouchEventArgs
Результат void
        void reddot_PreviewTouchDown(object sender, TouchEventArgs e)
        {
            Ellipse dot = (Ellipse)sender;
            naturenet_dataclassDataContext db = new naturenet_dataclassDataContext();
            var loc = from l in db.Locations
                      where l.id == (int)dot.Tag
                      select l;
            Location location = loc.Single<Location>();
            log.WriteInteractionLog(11, "Location: " + location.id.ToString(), e.TouchDevice);
            window_manager.open_location_collection_window(location.name, location.id, Canvas.GetLeft(dot) + (dot.Width / 2), Canvas.GetTop(dot) + (dot.Height / 2));
        }