private void Target_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Point mousePos = e.GetPosition(target); FletchedGraphic arrow = new FletchedGraphic(mousePos); lArrows.Add(arrow); tempScore.Add(GetScore(mousePos)); UpdateTargetChildren(); }
private void Target_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Point mousePos = e.GetPosition(target); if (Keyboard.Modifiers == ModifierKeys.Control) //bareshaft { BareshaftGraphic bareshaft = new BareshaftGraphic(mousePos); lBareshaft.Add(bareshaft); } else { FletchedGraphic fletched = new FletchedGraphic(mousePos); lFletched.Add(fletched); } UpdateTargetChildren(); }