x41d32e77872302c5.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 x41d32e77872302c5 : xbd3f2493841f18a1
  7.     {
  8.         private x60982e1b4eef090a x1f8a3bb85c91d0b5;
  9.         public x41d32e77872302c5(Control control, SkinEngine engine) : base(control, engine)
  10.         {
  11.             ScrollBar host = (ScrollBar) control;
  12.             if (control is HScrollBar)
  13.             {
  14.                 this.x1f8a3bb85c91d0b5 = new x60982e1b4eef090a(host, engine, true);
  15.             }
  16.             else
  17.             {
  18.                 this.x1f8a3bb85c91d0b5 = new x60982e1b4eef090a(host, engine, false);
  19.             }
  20.             this.xf149df02f1aa3d56();
  21.             host.VisibleChanged += new EventHandler(this.xbad904bdcc347055);
  22.             host.SizeChanged += new EventHandler(this.xe8a173d72f8f3729);
  23.             host.LocationChanged += new EventHandler(this.x9fca9353a2d2087c);
  24.             host.Resize += new EventHandler(this.xb82f209246987e7a);
  25.             host.EnabledChanged += new EventHandler(this.xc68edf742e725d77);
  26.             host.ValueChanged += new EventHandler(this.xdf8f78b46a8ed400);
  27.         }
  28.         protected override void OnCurrentSkinChanged(object sender, SkinChangedEventArgs e)
  29.         {
  30.             base.OnCurrentSkinChanged(sender, e);
  31.             this.xf149df02f1aa3d56();
  32.         }
  33.         private void x9fca9353a2d2087c(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  34.         {
  35.             this.xf149df02f1aa3d56();
  36.         }
  37.         private void xb82f209246987e7a(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  38.         {
  39.             this.xf149df02f1aa3d56();
  40.         }
  41.         private void xbad904bdcc347055(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  42.         {
  43.             this.xf149df02f1aa3d56();
  44.         }
  45.         private void xc68edf742e725d77(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  46.         {
  47.             this.x1f8a3bb85c91d0b5.Repaint();
  48.         }
  49.         private void xdf8f78b46a8ed400(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  50.         {
  51.             this.x1f8a3bb85c91d0b5.Repaint();
  52.         }
  53.         private void xe8a173d72f8f3729(object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
  54.         {
  55.             this.xf149df02f1aa3d56();
  56.             this.x1f8a3bb85c91d0b5.Repaint();
  57.         }
  58.         private void xf149df02f1aa3d56()
  59.         {
  60.             this.x1f8a3bb85c91d0b5.Visible = (base.CanPaint & base.Ctrl.Visible) & base.Engine.SkinScrollBar;
  61.             if (this.x1f8a3bb85c91d0b5.Visible)
  62.             {
  63.                 if (base.Ctrl.Parent is TableLayoutPanel)
  64.                 {
  65.                     Rectangle bounds = base.Ctrl.Bounds;
  66.                     bounds.X += base.Ctrl.Parent.Left;
  67.                     bounds.Y += base.Ctrl.Parent.Top;
  68.                     this.x1f8a3bb85c91d0b5.Bounds = bounds;
  69.                 }
  70.                 else
  71.                 {
  72.                     this.x1f8a3bb85c91d0b5.Bounds = base.Ctrl.Bounds;
  73.                 }
  74.                 this.x1f8a3bb85c91d0b5.BringToFront();
  75.             }
  76.         }
  77.     }
  78. }