public void Execute() { StatusStrip.Text = Localization.GetText("Saving_All_Changes"); foreach (ExplorerNodeBase node in ChangedNodes.Keys) { node.Update(); node.Setup(); } ChangedNodes.Clear(); StatusStrip.Text = Localization.GetText("Changes_Saved"); }
public void Serialize(Map2 m) { if (ChangedNodes.Empty() && RemovedNodes.Empty()) { return; } m["¡RootId"] = Head?.Id; foreach (var changedNode in ChangedNodes) { changedNode.Serialize(m); } foreach (var removedNode in RemovedNodes) { removedNode.Remove(m); } ChangedNodes.Clear(); RemovedNodes.Clear(); }