예제 #1
0
 public void ActionPointJointsAdded(ProjectRobotJoints joints, string actionPointIt)
 {
     try {
         ActionPoint actionPoint = GetActionPoint(actionPointIt);
         actionPoint.AddJoints(joints);
         OnProjectChanged?.Invoke(this, EventArgs.Empty);
         OnActionPointUpdated?.Invoke(this, new ActionPointUpdatedEventArgs(actionPoint));
         OnProjectChanged?.Invoke(this, EventArgs.Empty);
     } catch (KeyNotFoundException ex) {
         Debug.LogError(ex);
         Notifications.Instance.ShowNotification("Failed to add action point joints", ex.Message);
         return;
     }
 }