public override void MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            var underMouse = Drawing.Figures.HitTest(Coordinates(e));

            if (underMouse != null &&
                (underMouse is AngleArc || underMouse is AngleMeasurement))
            {
                FoundDependencies.AddRange(underMouse.Dependencies);
            }
            base.MouseDown(sender, e);
        }
Beispiel #2
0
        public override void MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            var underMouse = Drawing.Figures.HitTest <Segment>(Coordinates(e));

            if (underMouse != null &&
                underMouse.Dependencies.Count() == 2 &&
                Drawing.Figures.HitTest <IPoint>(Coordinates(e)) == null)
            {
                FoundDependencies.AddRange(underMouse.Dependencies);
            }
            base.MouseDown(sender, e);
        }