static public void Add(FileOperation op) { operations.Add(op); // serialize Common.XmlFileSerialize(programPath + "\\" + fileName, operations, typeof(List <FileOperation>), new Type[] { typeof(FileMoveOperation), typeof(FileDeleteOperation), typeof(ExtractZipFolderOperation) }); }
public void WriteConfig(String hlExeFullPath, String gameFolder) { config.Settings.Launcher.GamePath = hlExeFullPath; config.Settings.Launcher.Modification = gameFolder; Common.XmlFileSerialize(System.IO.Path.GetDirectoryName(Config.Settings.HlaeExeFullPath) + "\\" + configFileName, config, typeof(HlaeConfig)); }