Esempio n. 1
0
        public POIAnimationSlide(List<int> myDurationList, int myIndex, POIPresentation parent)
            : base(parent)
        {
            index = myIndex;

            type = SlideType.Animation;
            durationList = myDurationList;
            format = SlideContentFormat.WMV;

            //Three fields
            size = fieldSizeAnimation + durationList.Count * sizeof(int);

            /*
            FileInfo info = new FileInfo(Source.LocalPath);
            size += info.Length;

            info = new FileInfo(SourceWithoutFormat + ".PNG");
            size += info.Length;*/
        }
Esempio n. 2
0
 public POIStaticSlide(POIPresentation parent)
     : base(parent)
 {
 }
Esempio n. 3
0
        public POIStaticSlide(int myIndex, POIPresentation parent)
            : base(parent)
        {
            index = myIndex;

            type = SlideType.Static;
            format = SlideContentFormat.PNG;
            durationList = new List<int>();

            size = fieldSizeStatic;

            /*
            FileInfo info = new FileInfo(Source.LocalPath);
            size += info.Length;*/
        }
Esempio n. 4
0
 public POIAnimationSlide(POIPresentation parent)
     : base(parent)
 {
 }
Esempio n. 5
0
        //Functions
        public POISlide(POIPresentation parent)
        {
            size = 0;
            durationList = new List<int>();

            parentPresentation = parent;
        }
        public static POIPresentation LoadPresFromContentServer(int contentId)
        {
            POIPresentation pres = new POIPresentation();
            int offset = 0;

            byte[] content = POIContentServerHelper.getPresInfo(contentId);

            if (content != null)
            {
                pres.deserialize(content, ref offset);
            }
            else
            {
                Console.WriteLine("Cannot get archive from content server!");
            }

            return pres;
        }
        public void Update(POIPresentation pres)
        {
            if (presId == pres.presId)
            {
                foreach (POISlide slide in pres.slideList.Values)
                {
                    Insert(slide);
                }

                //Update the information for the presentation
                foreach (string key in pres.info.Keys)
                {
                    info[key] = pres.info[key];
                }

                sizeChanged = true;
            }
            else
            {
                Console.WriteLine("Input presentation has a different id.");
            }
        }
 private void parsePresContentMsg(byte[] buffer, int offset)
 {
     POIPresentation presentation = new POIPresentation();
     presentation.deserialize(buffer, ref offset);
 }