/// <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); } }
/// <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(); }
/// <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) { control.OnDeleted(); }