Exemplo n.º 1
0
 public void ActionPointBaseUpdated(ProjectActionPoint projectActionPoint)
 {
     try {
         ActionPoint actionPoint = GetActionPoint(projectActionPoint.Id);
         actionPoint.ActionPointBaseUpdate(projectActionPoint);
         OnActionPointsChanged?.Invoke(this, EventArgs.Empty);
         OnActionPointUpdated?.Invoke(this, new ActionPointUpdatedEventArgs(actionPoint));
         OnProjectChanged?.Invoke(this, EventArgs.Empty);
     } catch (KeyNotFoundException ex) {
         Debug.Log("Action point " + projectActionPoint.Id + " not found!");
         Notifications.Instance.ShowNotification("", "Action point " + projectActionPoint.Id + " not found!");
         return;
     }
 }
Exemplo n.º 2
0
 public void ActionPointAdded(ProjectActionPoint projectActionPoint)
 {
     if (projectActionPoint.Parent == null || projectActionPoint.Parent == "")
     {
         SpawnActionPoint(projectActionPoint, null);
     }
     else
     {
         try {
             IActionPointParent actionPointParent = GetActionPointParent(projectActionPoint.Parent);
             SpawnActionPoint(projectActionPoint, actionPointParent);
         } catch (KeyNotFoundException ex) {
             Debug.LogError(ex);
         }
     }
     OnActionPointsChanged?.Invoke(this, EventArgs.Empty);
     OnProjectChanged?.Invoke(this, EventArgs.Empty);
 }
Exemplo n.º 3
0
 public void ActionPointRemoved(ProjectActionPoint projectActionPoint)
 {
     RemoveActionPoint(projectActionPoint.Id);
     OnActionPointsChanged?.Invoke(this, EventArgs.Empty);
     OnProjectChanged?.Invoke(this, EventArgs.Empty);
 }