//----------------------------------------------------------------------- public void Save(bool isBackup = false) { if (IsMultiediting) { foreach (var doc in MultieditDocs) { doc.Save(); } return; } var path = isBackup ? BackupPath : Path; Workspace.DisableFileEvents = true; Data.Save(path); if (!isBackup) { ProjectViewTool.Instance.Add(path); } Workspace.DisableFileEvents = false; if (isBackup) { } else { IsBackup = false; UndoRedo.MarkSavePoint(); if (Path.EndsWith(".xmldef")) { Workspace.LoadDefinitions(); } } }