예제 #1
0
 /// <summary>
 /// Called when control gets added to the surface as spawn operation (eg. add new comment or add new node).
 /// </summary>
 /// <param name="control">The control.</param>
 public virtual void OnControlSpawned(SurfaceControl control)
 {
     control.OnSpawned();
     ControlSpawned?.Invoke(control);
     if (control is SurfaceNode node)
     {
         Surface.OnNodeSpawned(node);
     }
 }
예제 #2
0
 /// <summary>
 /// Called when control gets added to the surface as spawn operation (eg. add new comment or add new node).
 /// </summary>
 /// <param name="control">The control.</param>
 public virtual void OnControlSpawned(SurfaceControl control)
 {
     control.OnSpawned();
     ControlSpawned?.Invoke(control);
 }