static public void ExportPackage(string packagePath, string[] exportFilePaths) { if (string.IsNullOrEmpty(packagePath)) { packagePath = swig.FileDialog.SaveDialog("efkpkg", string.Empty); } if (string.IsNullOrEmpty(packagePath)) { return; } var efkpkg = new IO.EfkPkg(); foreach (string path in exportFilePaths) { efkpkg.AddEffect(path); } efkpkg.Export(packagePath); }
static public void ImportPackage(string packagePath, string targetDirPath) { if (string.IsNullOrEmpty(packagePath)) { packagePath = swig.FileDialog.OpenDialog("efkpkg", string.Empty); } if (string.IsNullOrEmpty(packagePath)) { return; } var efkpkg = new IO.EfkPkg(); if (!efkpkg.Import(packagePath)) { return; } var dialog = new GUI.Dialog.ImportEfkPkg(); dialog.Show(packagePath, efkpkg); }