public void Write(ArchiveWriter ar) { Debug.Assert(Version == 6200); ar.WriteStringL(SERIALISEHEADER, true); ar.Write(Version); ar.Write(DesktopSize); ar.WriteRaw(MainWindowBounds); ar.WriteStringL(PromptID < 0 ? "" : PromptID.ToString()); ar.Write(NextControlID); }
public void Write(ArchiveWriter ar) { ar.WriteStringL(GenerateScript(true), true); Visit.Write(ar); if (RunDefault && CommandList.Any()) { Globals.NonFatalOperationalError("[SAW_FILE_SAW6_CannotMixedScript]"); } // in SAW 6 there were separate lists // non-SAW6 commands are filtered. They should generally give an Globals.NonFatalOperationalError during the script generation (above) ar.WriteFiltered(CommandList, x => x.ExecutionTime == Command.ExecutionTimes.Immediate && x.CommandListEntry.SAW6); ar.WriteFiltered(CommandList, x => x.ExecutionTime == Command.ExecutionTimes.Deferred && x.CommandListEntry.SAW6); // not sure what happened to any device up??? }