Esempio n. 1
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;
		}
		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;
		}
Esempio n. 3
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);
			}
		}
Esempio n. 4
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);
			}
		}
Esempio n. 5
0
		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;
		}
Esempio n. 6
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;
		}
Esempio n. 7
0
		public ExportImage (BaseStyleDecorator itemStyle):base(itemStyle,false) 
		{
			
		}
		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;
		}
Esempio n. 9
0
 public ExportImage(BaseStyleDecorator itemStyle) : base(itemStyle, false)
 {
 }
Esempio n. 10
0
		public ExportText (BaseStyleDecorator itemStyle,bool isContainer):base(itemStyle,isContainer)
		{
		}
Esempio n. 11
0
//		public ExportText():base()
//		{
//		}

        public ExportText(BaseStyleDecorator itemStyle, bool isContainer) : base(itemStyle, isContainer)
        {
        }
Esempio n. 12
0
		public ExportText (BaseStyleDecorator itemStyle):base(itemStyle)
		{
		}
Esempio n. 13
0
 public ExportContainer(BaseStyleDecorator itemStyle) : base(itemStyle, true)
 {
 }
Esempio n. 14
0
		public ExportContainer(BaseStyleDecorator itemStyle) : base(itemStyle)
		{
		}
Esempio n. 15
0
 public ExportText(BaseStyleDecorator itemStyle) : base(itemStyle)
 {
 }