Ejemplo n.º 1
0
        private bool LoadProject(string filename)
        {
            PackageClass pak = new PackageClass();

            if (!pak.Load(filename))
            {
                MessageBox.Show("Error loading package project");
                return(false);
            }

            pak.GenerateAbsolutePath(Path.GetDirectoryName(filename));
            foreach (FolderGroup folderGroup in pak.ProjectSettings.FolderGroups)
            {
                ProjectSettings.UpdateFiles(pak, folderGroup);
            }

            pak.ProjectSettings.ProjectFilename = filename;

            Package = pak;
            mruMenu.AddFile(filename);
            return(true);
        }