private void SaveLoad(bool save, EFlags flags) { ProgressReporter prog = ProgressReporter.GetEmpty(); // too fast to warrent dialogue if (flags.Has(EFlags.DoNotShowAgain)) { XmlSettings.SaveLoad(save, FileId.DoNotShowAgain, ref this.DoNotShowAgain, null, prog); } if (flags.Has(EFlags.RecentSessions)) { XmlSettings.SaveLoad(save, FileId.RecentSessions, ref this.RecentSessions, null, prog); } if (flags.Has(EFlags.RecentWorkspaces)) { XmlSettings.SaveLoad(save, FileId.RecentWorkspaces, ref this.RecentWorkspaces, null, prog); } if (flags.Has(EFlags.General)) { XmlSettings.SaveLoad(save, FileId.General, ref this.General, null, prog); } if (flags.Has(EFlags.FileLoadInfo)) { XmlSettings.SaveLoad(save, FileId.FileLoadInfo, ref this.FileLoadInfo, null, prog); } }