x6a7aef305e9ce97d.cs
上传用户:xlxx0122
上传日期:2015-04-24
资源大小:3904k
文件大小:3k
源码类别:

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin
  2. {
  3.     using System;
  4.     using System.Drawing;
  5.     using System.Windows.Forms;
  6.     internal class x6a7aef305e9ce97d : x2edc3f693fe78d2e
  7.     {
  8.         private const int xc2b2889221bc8c5e = 0x15;
  9.         public x6a7aef305e9ce97d(Control control, SkinEngine engine) : base(control, engine)
  10.         {
  11.         }
  12.         protected override void PaintControl()
  13.         {
  14.             if (((base.Ctrl.ClientRectangle.Width > 0) && (base.Ctrl.ClientRectangle.Height > 0)) && base.CanPaint)
  15.             {
  16.                 base.PaintControl();
  17.                 DateTimePicker ctrl = (DateTimePicker) base.Ctrl;
  18.                 if (!ctrl.ShowUpDown)
  19.                 {
  20.                     using (Bitmap bitmap = new Bitmap(base.Ctrl.Width, base.Ctrl.Height))
  21.                     {
  22.                         using (Graphics graphics = Graphics.FromImage(bitmap))
  23.                         {
  24.                             this.x8bc95f030953f87b(graphics);
  25.                         }
  26.                         IntPtr windowDC = x61467fe65a98f20c.GetWindowDC(base.Ctrl.Handle);
  27.                         using (Graphics graphics2 = Graphics.FromHdc(windowDC))
  28.                         {
  29.                             graphics2.DrawImageUnscaled(bitmap, 0, 0);
  30.                         }
  31.                         x61467fe65a98f20c.ReleaseDC(base.Ctrl.Handle, windowDC);
  32.                     }
  33.                 }
  34.             }
  35.         }
  36.         private void x373a1ceeebad6a15(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  37.         {
  38.             this.PaintControl();
  39.         }
  40.         private void x8bc95f030953f87b(Graphics x4b101060f4767186)
  41.         {
  42.             DateTimePicker ctrl = (DateTimePicker) base.Ctrl;
  43.             Rectangle rect = new Rectangle(ctrl.Width - 0x15, 0, 0x15, ctrl.Height);
  44.             Brush brush = base.Engine.Res.Brushes.SKIN2_FORMCOLOR;
  45.             rect.X += 2;
  46.             rect.Y += 2;
  47.             rect.Width -= 5;
  48.             rect.Height -= 5;
  49.             x4b101060f4767186.FillRectangle(brush, rect);
  50.             using (Pen pen = new Pen(base.Engine.Res.Brushes.SKIN2_CONTROLBORDERCOLOR, 1f))
  51.             {
  52.                 x4b101060f4767186.DrawRectangle(pen, rect);
  53.             }
  54.             x448fd9ab43628c71.DrawArrowDown(x4b101060f4767186, (rect.X + 10) - 5, (rect.Y + (ctrl.Height / 2)) - 3, ctrl.Enabled);
  55.         }
  56.         protected override bool ChangeBackColor
  57.         {
  58.             get
  59.             {
  60.                 return false;
  61.             }
  62.         }
  63.     }
  64. }