void IPersistable.Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(ActionInfoWithDynamicImageMap.m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.ActionDefinition:
                    writer.Write(base.ActionDef);
                    break;

                case MemberName.Actions:
                {
                    ActionInstance[] array = new ActionInstance[base.Actions.Count];
                    for (int i = 0; i < array.Length; i++)
                    {
                        array[i] = ((ReportElementCollectionBase <Action>)base.Actions)[i].Instance;
                    }
                    writer.Write((IPersistable[])array);
                    break;
                }

                case MemberName.ImageMapAreas:
                    writer.WriteRIFList(this.ImageMapAreaInstances.InternalList);
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public override void Serialize(IntermediateFormatWriter writer)
        {
            base.Serialize(writer);
            writer.RegisterDeclaration(CriImageInstance.m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.ImageData:
                    writer.Write(this.m_imageData);
                    break;

                case MemberName.MIMEType:
                {
                    string value = null;
                    if (base.ImageDef.MIMEType != null && base.ImageDef.MIMEType.IsExpression)
                    {
                        value = this.m_mimeType;
                    }
                    writer.Write(value);
                    break;
                }

                case MemberName.Actions:
                {
                    ActionInstance[] array = null;
                    if (base.ImageDef.ActionInfo != null)
                    {
                        array = new ActionInstance[base.ImageDef.ActionInfo.Actions.Count];
                        for (int i = 0; i < array.Length; i++)
                        {
                            array[i] = ((ReportElementCollectionBase <Action>)base.ImageDef.ActionInfo.Actions)[i].Instance;
                        }
                    }
                    writer.Write((IPersistable[])array);
                    break;
                }

                case MemberName.ImageMapAreas:
                    writer.WriteRIFList(this.ActionInfoWithDynamicImageMapAreas.InternalList);
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Пример #3
0
		public void ConstructActionDefinition()
		{
			ActionInstance instance = this.Instance;
			Global.Tracer.Assert(instance != null);
			if (instance.Label != null)
			{
				this.m_actionItemDef.Label = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression(instance.Label);
			}
			else
			{
				this.m_actionItemDef.Label = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
			}
			this.m_label = null;
			if (this.BookmarkLink != null)
			{
				if (instance.BookmarkLink != null)
				{
					this.m_actionItemDef.BookmarkLink = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression(instance.BookmarkLink);
				}
				else
				{
					this.m_actionItemDef.BookmarkLink = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
				}
				this.m_bookmark = null;
			}
			if (this.Hyperlink != null)
			{
				if (instance.HyperlinkText != null)
				{
					this.m_actionItemDef.HyperLinkURL = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression(instance.HyperlinkText);
				}
				else
				{
					this.m_actionItemDef.HyperLinkURL = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
				}
				this.m_hyperlink = null;
			}
			if (this.Drillthrough != null)
			{
				this.Drillthrough.ConstructDrillthoughDefinition();
			}
		}