Exemple #1
0
        public ICSharpCode.Reports.Core.Exporter.BaseExportColumn CreateExportColumn()
        {
            BaseStyleDecorator st   = this.CreateItemStyle();
            ExportContainer    item = new ExportContainer(st);

            return(item);
        }
Exemple #2
0
        public IBaseExportColumn CreateExportColumn()
        {
            BaseStyleDecorator st   = this.CreateItemStyle();
            ExportContainer    item = new ExportContainer(st);

            return(item);
        }
        System.Windows.Controls.Border CreateBorder(BaseStyleDecorator column, double thickness, double cornerRadius)
        {
            var border = new System.Windows.Controls.Border();

            border.Padding         = new Thickness(1);
            border.BorderThickness = new Thickness(thickness);
            border.CornerRadius    = new CornerRadius(cornerRadius);
            border.BorderBrush     = ConvertBrush(column.ForeColor);
            return(border);
        }
Exemple #4
0
        private BaseStyleDecorator CreateItemStyle()
        {
            BaseStyleDecorator style = new BaseStyleDecorator();

            style.BackColor  = this.BackColor;
            style.ForeColor  = this.ForeColor;
            style.Location   = this.Location;
            style.Size       = this.Size;
            style.DrawBorder = this.DrawBorder;
            return(style);
        }
Exemple #5
0
        public static void FillBackground(Graphics graphics, BaseStyleDecorator decorator)
        {
            if (decorator.BackColor != GlobalValues.DefaultBackColor)
            {
                RectangleShape backgroundShape = new RectangleShape();

                backgroundShape.FillShape(graphics,
                                          new SolidFillPattern(decorator.BackColor),
                                          decorator.DisplayRectangle);
            }
        }
Exemple #6
0
 public static void DrawBorder(Graphics graphics, BaseStyleDecorator decorator)
 {
     if (decorator.DrawBorder)
     {
         if (decorator.FrameColor == Color.Empty)
         {
             decorator.FrameColor = decorator.ForeColor;
         }
         Border border = new Border(new BaseLine(decorator.FrameColor, System.Drawing.Drawing2D.DashStyle.Solid, 1));
         border.DrawBorder(graphics, decorator.DisplayRectangle);
     }
 }
Exemple #7
0
        protected BaseStyleDecorator CreateItemStyle()
        {
            BaseStyleDecorator style = new BaseStyleDecorator();

            style.BackColor = this.BackColor;
            style.ForeColor = this.ForeColor;
            Rectangle rect = base.DrawingRectangle;

            style.Location   = new Point(rect.Left, this.Location.Y);
            style.Size       = this.Size;
            style.DrawBorder = this.DrawBorder;
            return(style);
        }
        private BaseStyleDecorator GetBaseStyleDecorator()
        {
            BaseStyleDecorator bsd = new BaseStyleDecorator();

            bsd.DrawBorder       = this.DrawBorder;
            bsd.BackColor        = this.BackColor;
            bsd.ForeColor        = this.ForeColor;
            bsd.FrameColor       = this.FrameColor;
            bsd.Location         = this.Location;
            bsd.Size             = this.Size;
            bsd.DisplayRectangle = this.DisplayRectangle;

            return(bsd);
        }
Exemple #9
0
        public BaseExportColumn CreateExportColumn()
        {
            BaseStyleDecorator st   = this.CreateItemStyle();
            ExportImage        item = new ExportImage(st);

            if (this.Image == null)
            {
                item.FileName = this.imageFileName;
                this.Image    = this.LoadImage();
            }

            item.Image            = this.Image;
            item.ScaleImageToSize = this.scaleImageToSize;
            return(item);
        }
Exemple #10
0
        protected BaseStyleDecorator CreateItemStyle()
        {
            BaseStyleDecorator style = new BaseStyleDecorator();

            style.BackColor  = this.BackColor;
            style.ForeColor  = this.ForeColor;
            style.FrameColor = this.FrameColor;

            /*
             * if (this.Parent != null) {
             *      Rectangle rect = base.DrawingRectangle;
             *      style.Location = new Point(rect.Left,this.Location.Y);
             * } else {
             *      style.Location = this.Location;
             * }
             */
            style.Location   = this.Location;
            style.Size       = this.Size;
            style.DrawBorder = this.DrawBorder;
            return(style);
        }