void TankLeft(object sender, RoutedEventArgs e) { e.Handled = true; InteractiveElement ie = M.Session.User.Tank.InteractiveElement; double x = 0; double y = 0; if (ie != null) { x = x + ie.GetPosition().X; y = y + ie.GetPosition().Y; } S.TankMove(x - 5, y); }