Пример #1
0
 public void ActionPointJointsRemoved(ProjectRobotJoints joints)
 {
     try {
         ActionPoint actionPoint = GetActionPointWithJoints(joints.Id);
         actionPoint.RemoveJoints(joints);
         OnActionPointUpdated?.Invoke(this, new ActionPointUpdatedEventArgs(actionPoint));
         OnProjectChanged?.Invoke(this, EventArgs.Empty);
     } catch (KeyNotFoundException ex) {
         Debug.LogError(ex);
         Notifications.Instance.ShowNotification("Failed to remove action point joints", ex.Message);
         return;
     }
 }