Пример #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);
 }