private void OnActionPointBaseUpdated(object sender, BareActionPointEventArgs args)
 {
     if (CurrentActionPoint == null || args.ActionPoint.Id != CurrentActionPoint.GetId())
     {
         return;
     }
     PositionManualEdit.SetPosition(args.ActionPoint.Position);
     UpdateJointsDynamicList((string)JointsRobotsList.GetValue());   //because of possible invalidation of joints
 }
示例#2
0
 private void OnActionPointBaseUpdated(object sender, BareActionPointEventArgs args)
 {
     if (!IsVisible)
     {
         return;
     }
     if (CurrentActionPoint == null || args.ActionPoint.Id != CurrentActionPoint.GetId())
     {
         return;
     }
     PositionManualEdit.SetPosition(args.ActionPoint.Position);
     if (SceneManager.Instance.SceneStarted)
     {
         UpdateJointsDynamicList(SceneManager.Instance.SelectedRobot.GetId(), SceneManager.Instance.SelectedArmId);  //because of possible invalidation of joints
     }
 }
示例#3
0
    private async Task <RequestResult> ValidateParent(object selectedParent)
    {
        IActionPointParent parent = (IActionPointParent)selectedParent;
        RequestResult      result = new RequestResult(true, "");

        if (parent.GetId() == CurrentActionPoint.GetId())
        {
            result.Success = false;
            result.Message = "Action point cannot be its own parent!";
        }

        return(result);
    }