public override void AddFilesToCabinet(FileCabinet fc)
 {
     if (imageSet.WcsImage is FitsImage)
     {
         string fName    = ((WcsImage)imageSet.WcsImage).Filename;
         string fileName = fc.TempDirectory + string.Format("{0}\\{1}{2}", fc.PackageID, this.ID.ToString(), extension);
         fc.AddFile(fileName, ((FitsImage)imageSet.WcsImage).sourceBlob);
     }
 }
예제 #2
0
        public override void AddFilesToCabinet(FileCabinet fc)
        {
            filename = fc.TempDirectory + string.Format("{0}\\{1}.txt", fc.PackageID, this.ID.ToString());

            string dir = filename.Substring(0, filename.LastIndexOf("\\"));

            Blob blob = new Blob(new object[] { dataFile });

            fc.AddFile(filename, blob);

            base.AddFilesToCabinet(fc);
        }
예제 #3
0
        public Blob SaveToBlob()
        {
            bool excludeAudio = false;

            CleanUp();

            string tourXml = GetTourXML();

            FileCabinet fc = new FileCabinet();

            fc.PackageID = this.Id;


            fc.AddFile("Tour.wwtxml", new Blob(new object[] { tourXml }));

            if (authorImage != null)
            {
                //todo add author image pipeline
                //   fc.AddFile(WorkingDirectory + "Author.Png");
            }

            foreach (TourStop stop in TourStops)
            {
                stop.AddFilesToCabinet(fc, excludeAudio);
            }

            List <Guid> masterList = CreateLayerMasterList();

            foreach (Guid id in masterList)
            {
                if (LayerManager.LayerList.ContainsKey(id))
                {
                    LayerManager.LayerList[id].AddFilesToCabinet(fc);
                }
            }

            TourDirty = false;
            return(fc.PackageFiles());
        }