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

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin.InternalControls
  2. {
  3.     using System;
  4.     using System.Drawing;
  5.     internal class x2cc390e9409b0f3f
  6.     {
  7.         protected bool bottomBorder;
  8.         protected bool chevron;
  9.         protected int col;
  10.         protected x5f4b657f68f87baa command;
  11.         protected Rectangle drawRect;
  12.         protected bool enabled;
  13.         protected bool expansion;
  14.         protected bool infrequent;
  15.         protected char mnemonic;
  16.         protected int row;
  17.         protected Rectangle selectRect;
  18.         protected bool separator;
  19.         protected bool subMenu;
  20.         protected bool topBorder;
  21.         protected bool vertSeparator;
  22.         public x2cc390e9409b0f3f(Rectangle drawRect)
  23.         {
  24.             this.row = -1;
  25.             this.col = -1;
  26.             this.mnemonic = '0';
  27.             this.enabled = true;
  28.             this.subMenu = false;
  29.             this.expansion = false;
  30.             this.separator = false;
  31.             this.vertSeparator = false;
  32.             this.topBorder = false;
  33.             this.bottomBorder = false;
  34.             this.infrequent = false;
  35.             this.chevron = true;
  36.             this.drawRect = drawRect;
  37.             this.selectRect = drawRect;
  38.             this.command = null;
  39.         }
  40.         public x2cc390e9409b0f3f(x5f4b657f68f87baa command, Rectangle drawRect)
  41.         {
  42.             this.InternalConstruct(command, drawRect, drawRect, -1, -1);
  43.         }
  44.         public x2cc390e9409b0f3f(Rectangle drawRect, bool expansion)
  45.         {
  46.             this.row = -1;
  47.             this.col = -1;
  48.             this.mnemonic = '0';
  49.             this.enabled = true;
  50.             this.subMenu = false;
  51.             this.expansion = expansion;
  52.             this.separator = !expansion;
  53.             this.vertSeparator = !expansion;
  54.             this.topBorder = false;
  55.             this.bottomBorder = false;
  56.             this.infrequent = false;
  57.             this.chevron = false;
  58.             this.drawRect = drawRect;
  59.             this.selectRect = drawRect;
  60.             this.command = null;
  61.         }
  62.         public x2cc390e9409b0f3f(x5f4b657f68f87baa command, Rectangle drawRect, Rectangle selectRect)
  63.         {
  64.             this.InternalConstruct(command, drawRect, selectRect, -1, -1);
  65.         }
  66.         public x2cc390e9409b0f3f(x5f4b657f68f87baa command, Rectangle drawRect, int row, int col)
  67.         {
  68.             this.InternalConstruct(command, drawRect, drawRect, row, col);
  69.         }
  70.         public void InternalConstruct(x5f4b657f68f87baa command, Rectangle drawRect, Rectangle selectRect, int row, int col)
  71.         {
  72.             this.row = row;
  73.             this.col = col;
  74.             this.enabled = command.Enabled;
  75.             this.expansion = false;
  76.             this.vertSeparator = false;
  77.             this.drawRect = drawRect;
  78.             this.selectRect = selectRect;
  79.             this.command = command;
  80.             this.topBorder = false;
  81.             this.bottomBorder = false;
  82.             this.infrequent = command.Infrequent;
  83.             this.chevron = false;
  84.             this.separator = this.command.Text == "-";
  85.             this.subMenu = this.command.MenuCommands.Count > 0;
  86.             int index = -1;
  87.             if (command.Text != null)
  88.             {
  89.                 index = command.Text.IndexOf('&');
  90.             }
  91.             if ((index != -1) && (index < (command.Text.Length - 1)))
  92.             {
  93.                 this.mnemonic = char.ToUpper(command.Text[index + 1]);
  94.             }
  95.         }
  96.         public bool BottomBorder
  97.         {
  98.             get
  99.             {
  100.                 return this.bottomBorder;
  101.             }
  102.             set
  103.             {
  104.                 this.bottomBorder = value;
  105.             }
  106.         }
  107.         public bool Chevron
  108.         {
  109.             get
  110.             {
  111.                 return this.chevron;
  112.             }
  113.         }
  114.         public int Col
  115.         {
  116.             get
  117.             {
  118.                 return this.col;
  119.             }
  120.         }
  121.         public Rectangle DrawRect
  122.         {
  123.             get
  124.             {
  125.                 return this.drawRect;
  126.             }
  127.             set
  128.             {
  129.                 this.drawRect = value;
  130.             }
  131.         }
  132.         public bool Enabled
  133.         {
  134.             get
  135.             {
  136.                 return this.enabled;
  137.             }
  138.         }
  139.         public bool Expansion
  140.         {
  141.             get
  142.             {
  143.                 return this.expansion;
  144.             }
  145.         }
  146.         public bool Infrequent
  147.         {
  148.             get
  149.             {
  150.                 return this.infrequent;
  151.             }
  152.             set
  153.             {
  154.                 this.infrequent = value;
  155.             }
  156.         }
  157.         public x5f4b657f68f87baa MenuCommand
  158.         {
  159.             get
  160.             {
  161.                 return this.command;
  162.             }
  163.         }
  164.         public char Mnemonic
  165.         {
  166.             get
  167.             {
  168.                 return this.mnemonic;
  169.             }
  170.         }
  171.         public int Row
  172.         {
  173.             get
  174.             {
  175.                 return this.row;
  176.             }
  177.         }
  178.         public Rectangle SelectRect
  179.         {
  180.             get
  181.             {
  182.                 return this.selectRect;
  183.             }
  184.             set
  185.             {
  186.                 this.selectRect = value;
  187.             }
  188.         }
  189.         public bool Separator
  190.         {
  191.             get
  192.             {
  193.                 return this.separator;
  194.             }
  195.         }
  196.         public bool SubMenu
  197.         {
  198.             get
  199.             {
  200.                 return this.subMenu;
  201.             }
  202.         }
  203.         public bool TopBorder
  204.         {
  205.             get
  206.             {
  207.                 return this.topBorder;
  208.             }
  209.             set
  210.             {
  211.                 this.topBorder = value;
  212.             }
  213.         }
  214.         public bool VerticalSeparator
  215.         {
  216.             get
  217.             {
  218.                 return this.vertSeparator;
  219.             }
  220.         }
  221.     }
  222. }