private void LoadSnapshots() { string appDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "AutoProjectFiles"); if (!Directory.Exists(appDir)) { Directory.CreateDirectory(appDir); } string snapshotDir = Path.Combine(appDir, "Snapshots"); if (!Directory.Exists(snapshotDir)) { Directory.CreateDirectory(snapshotDir); } snapshots = new List<ProjectSnapshot>(); foreach (string f in Directory.GetFiles(snapshotDir, "*.xml")) { ProjectSnapshot ps = new ProjectSnapshot(f); ps.Load(); snapshots.Add(ps); } }