Beispiel #1
0
 public CheckBoxSmartTag(ComponentBase obj) : base(obj)
 {
     DataColumn = (Obj as CheckBoxObject).DataColumn;
 }
Beispiel #2
0
 public ZipCodeSmartTag(ComponentBase obj)
     : base(obj)
 {
     DataColumn = (Obj as ZipCodeObject).DataColumn;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmartTagBase"/> class with default settings.
 /// </summary>
 /// <param name="obj">Report object that owns this smart tag.</param>
 public SmartTagBase(ComponentBase obj)
 {
     FObj           = obj;
     FMenu          = new ContextMenuStrip();
     FMenu.Renderer = Config.DesignerSettings.ToolStripRenderer;
 }
Beispiel #4
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            ComponentBase c = writer.DiffObject as ComponentBase;

            base.Serialize(writer);

            if (Printable != c.Printable)
            {
                writer.WriteBool("Printable", Printable);
            }
            if (PrintableExpression != c.PrintableExpression)
            {
                writer.WriteStr("PrintableExpression", PrintableExpression);
            }
            if (HasFlag(Flags.CanWriteBounds))
            {
                if (FloatDiff(Left, c.Left))
                {
                    writer.WriteFloat("Left", Left);
                }
                if (FloatDiff(Top, c.Top))
                {
                    writer.WriteFloat("Top", Top);
                }
                if (FloatDiff(Width, c.Width))
                {
                    writer.WriteFloat("Width", Width);
                }
                if (FloatDiff(Height, c.Height))
                {
                    writer.WriteFloat("Height", Height);
                }
            }
            if (writer.SerializeTo != SerializeTo.Preview)
            {
                if (Dock != c.Dock)
                {
                    writer.WriteValue("Dock", Dock);
                }
                if (Anchor != c.Anchor)
                {
                    writer.WriteValue("Anchor", Anchor);
                }
                if (Visible != c.Visible)
                {
                    writer.WriteBool("Visible", Visible);
                }
                if (VisibleExpression != c.VisibleExpression)
                {
                    writer.WriteStr("VisibleExpression", VisibleExpression);
                }
                if (GroupIndex != c.GroupIndex)
                {
                    writer.WriteInt("GroupIndex", GroupIndex);
                }
            }
            if (Tag != c.Tag)
            {
                writer.WriteStr("Tag", Tag);
            }
            if (writer.SerializeTo == SerializeTo.Preview)
            {
                if (RightAnchorWidth != c.RightAnchorWidth)
                {
                    writer.WriteFloat("RightAnchorWidth", RightAnchorWidth);
                }
            }
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataColumnSmartTag"/> class with default settings.
 /// </summary>
 /// <param name="obj">Report object that owns this smart tag.</param>
 public DataColumnSmartTag(ComponentBase obj) : base(obj)
 {
 }
Beispiel #6
0
 public TextObjectSmartTag(ComponentBase obj) : base(obj)
 {
     DataColumn = (Obj as TextObject).GetTextWithoutBrackets((Obj as TextObject).Text);
 }