示例#1
0
 /// <summary>
 /// Called when control gets removed from the surface as delete/cut operation (eg. remove comment or cut node).
 /// </summary>
 /// <param name="control">The control.</param>
 public virtual void OnControlDeleted(SurfaceControl control)
 {
     ControlDeleted?.Invoke(control);
     control.OnDeleted();
     if (control is SurfaceNode node)
     {
         Surface.OnNodeDeleted(node);
     }
 }
示例#2
0
 /// <summary>
 /// Called when control gets removed from the surface as delete/cut operation (eg. remove comment or cut node).
 /// </summary>
 /// <param name="control">The control.</param>
 public virtual void OnControlDeleted(SurfaceControl control)
 {
     ControlDeleted?.Invoke(control);
     control.OnDeleted();
 }