コード例 #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;*/
        }
コード例 #2
0
 public POIStaticSlide(POIPresentation parent)
     : base(parent)
 {
 }
コード例 #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;*/
        }
コード例 #4
0
 public POIAnimationSlide(POIPresentation parent)
     : base(parent)
 {
 }
コード例 #5
0
        //Functions
        public POISlide(POIPresentation parent)
        {
            size = 0;
            durationList = new List<int>();

            parentPresentation = parent;
        }
コード例 #6
0
        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;
        }
コード例 #7
0
        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.");
            }
        }
コード例 #8
0
 private void parsePresContentMsg(byte[] buffer, int offset)
 {
     POIPresentation presentation = new POIPresentation();
     presentation.deserialize(buffer, ref offset);
 }