예제 #1
0
        private void InstallFromUpload()
        {
            InstallationManager im   = Installer;
            ContentItem         root = im.InsertExportFile(fileUpload.FileContent, fileUpload.FileName);

            InsertRoot(root);
        }
예제 #2
0
        private void InsertFromFile(string path)
        {
            InstallationManager im = Installer;

            using (Stream read = File.OpenRead(path))
            {
                ContentItem root = im.InsertExportFile(read, path);
                InsertRoot(root);
            }
        }