/// <summary> /// Unloads the dialog: it first calls the <see cref="ILoadable.Unload"/> function of all the nodes implementing the /// <see cref="ILoadable"/> interface. Then, it clears the nodes and the pins maps. /// </summary> public void Unload() { foreach (WireNode node in NodesDictionary.Values) { if (node is ILoadable) { (node as ILoadable).Unload(); } } NodesDictionary.Clear(); Pins.Clear(); }
//What is the purpose of this method? If someone wanted to clear the Model, they could just create a new one. public void Clear() { Loads.Clear(); ClustersDictionary.Clear(); SubdomainsDictionary.Clear(); ElementsDictionary.Clear(); NodesDictionary.Clear(); GlobalDofOrdering = null; Constraints.Clear(); ElementMassAccelerationHistoryLoads.Clear(); ElementMassAccelerationLoads.Clear(); MassAccelerationHistoryLoads.Clear(); MassAccelerationLoads.Clear(); }