private void OnActionPointUpdated(object sender, ActionPointUpdatedEventArgs args) { if (CurrentActionPoint != null && CurrentActionPoint.Equals(args.Data)) { UpdateOrientations(preselectedOrientation); UpdateJoints((string)RobotsList.GetValue(), preselectedJoints); preselectedOrientation = null; } }