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

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin.InternalControls
  2. {
  3.     using System;
  4.     using System.ComponentModel;
  5.     using System.Drawing;
  6.     using System.Runtime.CompilerServices;
  7.     using System.Windows.Forms;
  8.     [ToolboxItem(false)]
  9.     internal class x5f4b657f68f87baa : Component
  10.     {
  11.         protected string description;
  12.         protected bool enabled;
  13.         protected bool ibreak;
  14.         protected bool ichecked;
  15.         protected System.Drawing.Image image;
  16.         protected int imageIndex;
  17.         protected System.Windows.Forms.ImageList imageList;
  18.         protected bool infrequent;
  19.         protected xd53b20b7b4b2a08a menuItems;
  20.         protected bool radioCheck;
  21.         protected System.Windows.Forms.Shortcut shortcut;
  22.         protected object tag;
  23.         protected string text;
  24.         protected bool visible;
  25.         private bool x49b363db01752634;
  26.         private MenuItem x569ad91f8a39fe51;
  27.         internal bool xb2504b89d66feca9;
  28.         internal Form xb7d28b7a6d50662f;
  29.         public event EventHandler Click;
  30.         public event x26569a56dfbc2c6d PopupEnd;
  31.         public event x26569a56dfbc2c6d PopupStart;
  32.         public event x5282b9c42ea1abce PropertyChanged;
  33.         public event EventHandler Update;
  34.         public x5f4b657f68f87baa()
  35.         {
  36.             this.InternalConstruct("MenuItem", null, -1, System.Windows.Forms.Shortcut.None, null);
  37.         }
  38.         public x5f4b657f68f87baa(string text)
  39.         {
  40.             this.InternalConstruct(text, null, -1, System.Windows.Forms.Shortcut.None, null);
  41.         }
  42.         public x5f4b657f68f87baa(string text, EventHandler clickHandler)
  43.         {
  44.             this.InternalConstruct(text, null, -1, System.Windows.Forms.Shortcut.None, clickHandler);
  45.         }
  46.         public x5f4b657f68f87baa(string text, System.Windows.Forms.Shortcut shortcut)
  47.         {
  48.             this.InternalConstruct(text, null, -1, shortcut, null);
  49.         }
  50.         public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex)
  51.         {
  52.             this.InternalConstruct(text, imageList, imageIndex, System.Windows.Forms.Shortcut.None, null);
  53.         }
  54.         public x5f4b657f68f87baa(string text, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
  55.         {
  56.             this.InternalConstruct(text, null, -1, shortcut, clickHandler);
  57.         }
  58.         public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, EventHandler clickHandler)
  59.         {
  60.             this.InternalConstruct(text, imageList, imageIndex, System.Windows.Forms.Shortcut.None, clickHandler);
  61.         }
  62.         public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut)
  63.         {
  64.             this.InternalConstruct(text, imageList, imageIndex, shortcut, null);
  65.         }
  66.         public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
  67.         {
  68.             this.InternalConstruct(text, imageList, imageIndex, shortcut, clickHandler);
  69.         }
  70.         protected void InternalConstruct(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
  71.         {
  72.             this.text = text;
  73.             this.imageList = imageList;
  74.             this.imageIndex = imageIndex;
  75.             this.shortcut = shortcut;
  76.             this.description = text;
  77.             if (clickHandler != null)
  78.             {
  79.                 this.x98992f4120a73bb9 = (EventHandler) Delegate.Combine(this.x98992f4120a73bb9, clickHandler);
  80.             }
  81.             this.enabled = true;
  82.             this.ichecked = false;
  83.             this.radioCheck = false;
  84.             this.ibreak = false;
  85.             this.tag = null;
  86.             this.visible = true;
  87.             this.infrequent = false;
  88.             this.image = null;
  89.             this.menuItems = new xd53b20b7b4b2a08a();
  90.         }
  91.         public virtual void OnClick(EventArgs e)
  92.         {
  93.             if (this.x98992f4120a73bb9 != null)
  94.             {
  95.                 this.x98992f4120a73bb9(this, e);
  96.             }
  97.         }
  98.         public virtual void OnPopupEnd()
  99.         {
  100.             if (this.x1b233dbc8c05d73f != null)
  101.             {
  102.                 this.x1b233dbc8c05d73f(this);
  103.             }
  104.         }
  105.         public virtual void OnPopupStart()
  106.         {
  107.             if (this.x3b2905fe94e52614 != null)
  108.             {
  109.                 this.x3b2905fe94e52614(this);
  110.             }
  111.         }
  112.         public virtual void OnPropertyChanged(x879a106b0501b9dc prop)
  113.         {
  114.             if (this.x0ad6cb77c00e4e89 != null)
  115.             {
  116.                 this.x0ad6cb77c00e4e89(this, prop);
  117.             }
  118.         }
  119.         public virtual void OnUpdate(EventArgs e)
  120.         {
  121.             if (this.x295cb4a1df7a5add != null)
  122.             {
  123.                 this.x295cb4a1df7a5add(this, e);
  124.             }
  125.         }
  126.         public void PerformClick()
  127.         {
  128.             if (this.x569ad91f8a39fe51 != null)
  129.             {
  130.                 this.x569ad91f8a39fe51.PerformClick();
  131.             }
  132.             else
  133.             {
  134.                 this.OnUpdate(EventArgs.Empty);
  135.                 this.OnClick(EventArgs.Empty);
  136.             }
  137.         }
  138.         public MenuItem AttachedMenuItem
  139.         {
  140.             get
  141.             {
  142.                 return this.x569ad91f8a39fe51;
  143.             }
  144.             set
  145.             {
  146.                 this.x569ad91f8a39fe51 = value;
  147.             }
  148.         }
  149.         [DefaultValue(false)]
  150.         public bool Break
  151.         {
  152.             get
  153.             {
  154.                 if (this.x569ad91f8a39fe51 != null)
  155.                 {
  156.                     return this.x569ad91f8a39fe51.Break;
  157.                 }
  158.                 return this.ibreak;
  159.             }
  160.             set
  161.             {
  162.                 if (this.ibreak != value)
  163.                 {
  164.                     this.ibreak = value;
  165.                     this.OnPropertyChanged(x879a106b0501b9dc.Break);
  166.                 }
  167.             }
  168.         }
  169.         [DefaultValue(false)]
  170.         public bool Checked
  171.         {
  172.             get
  173.             {
  174.                 if (this.x569ad91f8a39fe51 != null)
  175.                 {
  176.                     return this.x569ad91f8a39fe51.Checked;
  177.                 }
  178.                 return this.ichecked;
  179.             }
  180.             set
  181.             {
  182.                 if (this.ichecked != value)
  183.                 {
  184.                     this.ichecked = value;
  185.                     this.OnPropertyChanged(x879a106b0501b9dc.Checked);
  186.                 }
  187.             }
  188.         }
  189.         [DefaultValue(""), Localizable(true)]
  190.         public string Description
  191.         {
  192.             get
  193.             {
  194.                 return this.description;
  195.             }
  196.             set
  197.             {
  198.                 this.description = value;
  199.             }
  200.         }
  201.         [DefaultValue(true)]
  202.         public bool Enabled
  203.         {
  204.             get
  205.             {
  206.                 if (this.x569ad91f8a39fe51 != null)
  207.                 {
  208.                     return this.x569ad91f8a39fe51.Enabled;
  209.                 }
  210.                 return this.enabled;
  211.             }
  212.             set
  213.             {
  214.                 if (this.enabled != value)
  215.                 {
  216.                     this.enabled = value;
  217.                     this.OnPropertyChanged(x879a106b0501b9dc.Enabled);
  218.                 }
  219.             }
  220.         }
  221.         [DefaultValue((string) null)]
  222.         public System.Drawing.Image Image
  223.         {
  224.             get
  225.             {
  226.                 return this.image;
  227.             }
  228.             set
  229.             {
  230.                 if (this.image != value)
  231.                 {
  232.                     this.image = value;
  233.                     this.OnPropertyChanged(x879a106b0501b9dc.Image);
  234.                 }
  235.             }
  236.         }
  237.         [DefaultValue(-1)]
  238.         public int ImageIndex
  239.         {
  240.             get
  241.             {
  242.                 return this.imageIndex;
  243.             }
  244.             set
  245.             {
  246.                 if (this.imageIndex != value)
  247.                 {
  248.                     this.imageIndex = value;
  249.                     this.OnPropertyChanged(x879a106b0501b9dc.ImageIndex);
  250.                 }
  251.             }
  252.         }
  253.         [DefaultValue((string) null)]
  254.         public System.Windows.Forms.ImageList ImageList
  255.         {
  256.             get
  257.             {
  258.                 return this.imageList;
  259.             }
  260.             set
  261.             {
  262.                 if (this.imageList != value)
  263.                 {
  264.                     this.imageList = value;
  265.                     this.OnPropertyChanged(x879a106b0501b9dc.ImageList);
  266.                 }
  267.             }
  268.         }
  269.         [DefaultValue(false)]
  270.         public bool Infrequent
  271.         {
  272.             get
  273.             {
  274.                 return this.infrequent;
  275.             }
  276.             set
  277.             {
  278.                 if (this.infrequent != value)
  279.                 {
  280.                     this.infrequent = value;
  281.                     this.OnPropertyChanged(x879a106b0501b9dc.Infrequent);
  282.                 }
  283.             }
  284.         }
  285.         [Browsable(false)]
  286.         public bool IsParent
  287.         {
  288.             get
  289.             {
  290.                 return (this.menuItems.Count > 0);
  291.             }
  292.         }
  293.         [DefaultValue(false)]
  294.         public bool MdiList
  295.         {
  296.             get
  297.             {
  298.                 if (this.x569ad91f8a39fe51 != null)
  299.                 {
  300.                     return this.x569ad91f8a39fe51.MdiList;
  301.                 }
  302.                 return this.x49b363db01752634;
  303.             }
  304.             set
  305.             {
  306.                 if (this.x49b363db01752634 != value)
  307.                 {
  308.                     this.x49b363db01752634 = value;
  309.                 }
  310.             }
  311.         }
  312.         [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  313.         public xd53b20b7b4b2a08a MenuCommands
  314.         {
  315.             get
  316.             {
  317.                 return this.menuItems;
  318.             }
  319.         }
  320.         [DefaultValue(false)]
  321.         public bool RadioCheck
  322.         {
  323.             get
  324.             {
  325.                 if (this.x569ad91f8a39fe51 != null)
  326.                 {
  327.                     return this.x569ad91f8a39fe51.RadioCheck;
  328.                 }
  329.                 return this.radioCheck;
  330.             }
  331.             set
  332.             {
  333.                 if (this.radioCheck != value)
  334.                 {
  335.                     this.radioCheck = value;
  336.                     this.OnPropertyChanged(x879a106b0501b9dc.RadioCheck);
  337.                 }
  338.             }
  339.         }
  340.         [DefaultValue(typeof(System.Windows.Forms.Shortcut), "None")]
  341.         public System.Windows.Forms.Shortcut Shortcut
  342.         {
  343.             get
  344.             {
  345.                 if (this.x569ad91f8a39fe51 != null)
  346.                 {
  347.                     return this.x569ad91f8a39fe51.Shortcut;
  348.                 }
  349.                 return this.shortcut;
  350.             }
  351.             set
  352.             {
  353.                 if (this.shortcut != value)
  354.                 {
  355.                     this.shortcut = value;
  356.                     this.OnPropertyChanged(x879a106b0501b9dc.Shortcut);
  357.                 }
  358.             }
  359.         }
  360.         [DefaultValue((string) null)]
  361.         public object Tag
  362.         {
  363.             get
  364.             {
  365.                 return this.tag;
  366.             }
  367.             set
  368.             {
  369.                 this.tag = value;
  370.             }
  371.         }
  372.         [Localizable(true), DefaultValue("MenuItem")]
  373.         public string Text
  374.         {
  375.             get
  376.             {
  377.                 if (this.x569ad91f8a39fe51 != null)
  378.                 {
  379.                     return this.x569ad91f8a39fe51.Text;
  380.                 }
  381.                 return this.text;
  382.             }
  383.             set
  384.             {
  385.                 if (this.text != value)
  386.                 {
  387.                     this.text = value;
  388.                     this.OnPropertyChanged(x879a106b0501b9dc.Text);
  389.                 }
  390.             }
  391.         }
  392.         [DefaultValue(true)]
  393.         public bool Visible
  394.         {
  395.             get
  396.             {
  397.                 if (this.x569ad91f8a39fe51 != null)
  398.                 {
  399.                     return this.x569ad91f8a39fe51.Visible;
  400.                 }
  401.                 return this.visible;
  402.             }
  403.             set
  404.             {
  405.                 if (this.visible != value)
  406.                 {
  407.                     this.visible = value;
  408.                     this.OnPropertyChanged(x879a106b0501b9dc.Visible);
  409.                 }
  410.             }
  411.         }
  412.         internal delegate void x5282b9c42ea1abce(x5f4b657f68f87baa item, x5f4b657f68f87baa.x879a106b0501b9dc prop);
  413.         internal enum x879a106b0501b9dc
  414.         {
  415.             Text,
  416.             Enabled,
  417.             ImageIndex,
  418.             ImageList,
  419.             Image,
  420.             Shortcut,
  421.             Checked,
  422.             RadioCheck,
  423.             Break,
  424.             Infrequent,
  425.             Visible,
  426.             Description
  427.         }
  428.     }
  429. }