Пример #1
0
        protected override Media ExportProtected(Presentation destPres)
        {
            ManagedImageMedia exported = (ManagedImageMedia)base.ExportProtected(destPres);

            exported.ImageMediaData = ImageMediaData.Export(destPres);
            return(exported);
        }
Пример #2
0
        protected override Media CopyProtected()
        {
            ManagedImageMedia cp = (ManagedImageMedia)base.CopyProtected();

            cp.ImageMediaData = ImageMediaData.Copy();
            return(cp);
        }
Пример #3
0
        protected void NotifyMediaDataChanged(ManagedImageMedia source, ImageMediaData newData, ImageMediaData prevData)
        {
            EventHandler <MediaDataChangedEventArgs> d = MediaDataChanged;

            if (d != null)
            {
                d(this, new MediaDataChangedEventArgs(source, newData, prevData));
            }
        }
Пример #4
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            ManagedImageMedia otherz = other as ManagedImageMedia;

            if (otherz == null)
            {
                return(false);
            }

            if (!ImageMediaData.ValueEquals(otherz.ImageMediaData))
            {
                //System.Diagnostics.Debug.Fail("! ValueEquals !");
                return(false);
            }

            return(true);
        }