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

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin
  2. {
  3.     using System;
  4.     using System.Windows.Forms;
  5.     internal class x3a157e8c7a942ff8 : x2edc3f693fe78d2e
  6.     {
  7.         private BorderStyle xacfbd7a08ba56c78;
  8.         public x3a157e8c7a942ff8(Control control, SkinEngine engine) : base(control, engine)
  9.         {
  10.         }
  11.         protected override void DoInit()
  12.         {
  13.             base.DoInit();
  14.             Panel ctrl = (Panel) base.Ctrl;
  15.             this.xacfbd7a08ba56c78 = ctrl.BorderStyle;
  16.             if ((this.xacfbd7a08ba56c78 != BorderStyle.None) && base.CanPaint)
  17.             {
  18.                 ctrl.BorderStyle = BorderStyle.FixedSingle;
  19.             }
  20.             base.Engine.CurrentSkinChanged += new SkinChanged(this.x495cb160f8448ee7);
  21.         }
  22.         protected override void PaintControl()
  23.         {
  24.             base.PaintControl();
  25.         }
  26.         private void x495cb160f8448ee7(object xe0292b9ed559da7d, SkinChangedEventArgs xfbf34718e704c6bc)
  27.         {
  28.             if (!base.Ctrl.IsDisposed)
  29.             {
  30.                 Panel ctrl = (Panel) base.Ctrl;
  31.                 if (this.xacfbd7a08ba56c78 != BorderStyle.None)
  32.                 {
  33.                     if (base.CanPaint)
  34.                     {
  35.                         ctrl.BorderStyle = BorderStyle.FixedSingle;
  36.                     }
  37.                     else
  38.                     {
  39.                         ctrl.BorderStyle = this.xacfbd7a08ba56c78;
  40.                     }
  41.                 }
  42.                 if (base.CanPaint)
  43.                 {
  44.                     base.Ctrl.BackColor = base.Engine.Res.Colors.SKIN2_FORMCOLOR;
  45.                 }
  46.                 else
  47.                 {
  48.                     base.Ctrl.BackColor = base.backColor;
  49.                 }
  50.                 base.Ctrl.Refresh();
  51.             }
  52.         }
  53.         protected override int BorderWidth
  54.         {
  55.             get
  56.             {
  57.                 Panel ctrl = (Panel) base.Ctrl;
  58.                 if (ctrl.BorderStyle == BorderStyle.FixedSingle)
  59.                 {
  60.                     return 0;
  61.                 }
  62.                 return 2;
  63.             }
  64.         }
  65.         protected override bool CanScroll
  66.         {
  67.             get
  68.             {
  69.                 return ((Panel) base.Ctrl).AutoScroll;
  70.             }
  71.         }
  72.         protected override bool PaintBorder
  73.         {
  74.             get
  75.             {
  76.                 Panel ctrl = (Panel) base.Ctrl;
  77.                 if (ctrl.BorderStyle == BorderStyle.None)
  78.                 {
  79.                     return false;
  80.                 }
  81.                 return true;
  82.             }
  83.         }
  84.     }
  85. }