/// <inheritdoc /> public void Unload() { PreUnload?.Invoke(this, new UnloadEventArgs()); InternalUnload(); PostUnload?.Invoke(this, new UnloadEventArgs()); }
public void Unload() { PreUnload.InvokeSafe(this); Nodes.ToList().ForEach(x => RemoveNode(x)); Connections.ToList().ForEach(x => Disconnect(x)); Variables.ToList().ForEach(x => RemoveVariable(x)); Selection = null; PostUnload.InvokeSafe(this); NodeEditor.Logger.Log <NodeGraph>("Graph cleared."); }
/// <inheritdoc /> public void Unload() { PreUnload?.Invoke(this, new UnloadEventArgs()); foreach (Dialog dialog in Dialogs) { dialog.Unload(); } foreach (Window window in Windows) { window.Unload(); } Mouse.Unload(); PostUnload?.Invoke(this, new UnloadEventArgs()); }