void IPersistable.Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(ActionInfoWithDynamicImageMap.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ActionDefinition:
                    base.ActionDef = (AspNetCore.ReportingServices.ReportIntermediateFormat.Action)reader.ReadRIFObject();
                    break;

                case MemberName.Actions:
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).StartActionInfoInstancesDeserialization(this);
                    reader.ReadArrayOfRIFObjects <ActionInstance>();
                    ((ROMInstanceObjectCreator)reader.PersistenceHelper).CompleteActionInfoInstancesDeserialization();
                    break;

                case MemberName.ImageMapAreas:
                    this.m_imageMapAreas = new ImageMapAreaInstanceCollection();
                    reader.ReadListOfRIFObjects(this.m_imageMapAreas.InternalList);
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
 public ImageMapAreaInstance CreateImageMapAreaInstance(ImageMapArea.ImageMapAreaShape shape, float[] coordinates, string toolTip)
 {
     if (!base.m_chartConstruction && base.ReportElementOwner.CriGenerationPhase != ReportElement.CriGenerationPhases.Instance)
     {
         throw new RenderingObjectModelException(RPRes.rsErrorDuringROMDefinitionWriteback);
     }
     if (coordinates != null && coordinates.Length >= 1)
     {
         if (this.m_imageMapAreas == null)
         {
             this.m_imageMapAreas = new ImageMapAreaInstanceCollection();
         }
         return(this.m_imageMapAreas.Add(shape, coordinates, toolTip));
     }
     throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterValue, "coordinates");
 }
 public ActionInfoWithDynamicImageMap(RenderingContext renderingContext, AspNetCore.ReportingServices.ReportRendering.ActionInfo renderAction, ImageMapAreasCollection renderImageMap)
     : base(renderingContext, renderAction)
 {
     base.IsDynamic       = true;
     this.m_imageMapAreas = new ImageMapAreaInstanceCollection(renderImageMap);
 }