public static void SavePath(params Path3D[] paths) { var wrapper = new Path3DWrapper(); if (File.Exists(FILE_NAME)) { wrapper.Paths.AddRange(LoadPaths()); } wrapper.Paths.AddRange(paths); using (var outputFile = File.Open(FILE_NAME, FileMode.Create)) { serializer.WriteObject(outputFile, wrapper); } }
public static void SavePath(params Path3D[] paths) { var wrapper = new Path3DWrapper(); if (File.Exists(FILE_NAME)) { wrapper.Paths.AddRange(LoadPaths()); } wrapper.Paths.AddRange(paths); using (var outputFile = File.Open(FILE_NAME, FileMode.Create)) { serializer.WriteObject(outputFile, wrapper); } }