Example #1
0
        /// <inheritdoc />
        public void Unload()
        {
            PreUnload?.Invoke(this, new UnloadEventArgs());

            InternalUnload();

            PostUnload?.Invoke(this, new UnloadEventArgs());
        }
Example #2
0
        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.");
        }
Example #3
0
        /// <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());
        }