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

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin
  2. {
  3.     using System;
  4.     using System.Windows.Forms;
  5.     internal class xc0bf85194d12f6b3 : x2edc3f693fe78d2e
  6.     {
  7.         private BorderStyle xacfbd7a08ba56c78;
  8.         public xc0bf85194d12f6b3(Control control, SkinEngine engine) : base(control, engine)
  9.         {
  10.         }
  11.         protected override void DoInit()
  12.         {
  13.             base.DoInit();
  14.             base.Engine.CurrentSkinChanged += new SkinChanged(this.x9d36565e6d24455f);
  15.             TreeView ctrl = (TreeView) base.Ctrl;
  16.             this.xacfbd7a08ba56c78 = ctrl.BorderStyle;
  17.             if ((this.xacfbd7a08ba56c78 != BorderStyle.None) && base.CanPaint)
  18.             {
  19.                 ctrl.BorderStyle = BorderStyle.FixedSingle;
  20.             }
  21.         }
  22.         protected override void PaintControl()
  23.         {
  24.             base.PaintControl();
  25.         }
  26.         private void x9d36565e6d24455f(object xe0292b9ed559da7d, SkinChangedEventArgs xfbf34718e704c6bc)
  27.         {
  28.             if (!base.Ctrl.IsDisposed)
  29.             {
  30.                 TreeView ctrl = (TreeView) 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.             }
  43.         }
  44.         protected override int BorderWidth
  45.         {
  46.             get
  47.             {
  48.                 return 0;
  49.             }
  50.         }
  51.         protected override bool ChangeBackColor
  52.         {
  53.             get
  54.             {
  55.                 return false;
  56.             }
  57.         }
  58.         protected override bool PaintBorder
  59.         {
  60.             get
  61.             {
  62.                 return base.PaintBorder;
  63.             }
  64.         }
  65.         protected override bool PaintBorderLine
  66.         {
  67.             get
  68.             {
  69.                 TreeView ctrl = (TreeView) base.Ctrl;
  70.                 if (ctrl.BorderStyle == BorderStyle.None)
  71.                 {
  72.                     return false;
  73.                 }
  74.                 return true;
  75.             }
  76.         }
  77.     }
  78. }