Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }