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);
     }
 }
        public static TourDocument FromUrlRaw(string url, Action callMe)
        {
            TourDocument temp = new TourDocument();

            temp.Url    = url;
            temp.callMe = callMe;

            temp.cabinet = FileCabinet.FromUrl(url, callMe);
            return(temp);
        }
Example #3
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);
        }
Example #4
0
        public static FileCabinet FromUrl(string url, Action callMe)
        {
            FileCabinet temp = new FileCabinet();

            temp.Url    = url;
            temp.callMe = callMe;

            temp.webFile = new WebFile(url);
            temp.webFile.ResponseType  = "blob";
            temp.webFile.OnStateChange = temp.LoadCabinet;
            temp.webFile.Send();

            return(temp);
        }
        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());
        }
Example #6
0
 public virtual void AddFilesToCabinet(FileCabinet fc)
 {
     return;
 }
Example #7
0
 public override void AddFilesToCabinet(FileCabinet fc)
 {
     return;
 }