示例#1
0
 protected void DrawFrame(Graphics graphics, Border border)
 {
     if (this.DrawBorder == true)
     {
         border.DrawBorder(graphics, this.ClientRectangle);
     }
 }
示例#2
0
 private void DrawFrame(Graphics graphics)
 {
     if (this.styleDecorator.DrawBorder)
     {
         Border b = this.CreateDefaultBorder();
         b.DrawBorder(graphics, this.styleDecorator.DisplayRectangle);
     }
 }
 private void DrawFrame()
 {
     if (this.StyleDecorator.DrawBorder)
     {
         Border b = this.CreateDefaultBorder();
         b.DrawBorder(this.PdfWriter.DirectContent, ConvertToPdfRectangle(), this.StyleDecorator);
     }
 }
示例#4
0
 private void DrawFrame()
 {
     if (this.styleDecorator.DrawBorder)
     {
         Border b = this.CreateDefaultBorder();
         iTextSharp.text.Rectangle rect = ConvertToPdfRectangle();
         b.DrawBorder(this.pdfWriter.DirectContent, rect, this.styleDecorator);
     }
 }
示例#5
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);
     }
 }
		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);
			}
		}
示例#7
0
 public static void Continue(bool success)
 {
     if (success)
     {
         _currentLevel++;
         NextLevel();
         Border.DrawBorder();
     }
     else
     {
         Start();
     }
 }