x5f4b657f68f87baa.cs
上传用户:xlxx0122
上传日期:2015-04-24
资源大小:3904k
文件大小:13k
- namespace Sunisoft.IrisSkin.InternalControls
- {
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using System.Runtime.CompilerServices;
- using System.Windows.Forms;
- [ToolboxItem(false)]
- internal class x5f4b657f68f87baa : Component
- {
- protected string description;
- protected bool enabled;
- protected bool ibreak;
- protected bool ichecked;
- protected System.Drawing.Image image;
- protected int imageIndex;
- protected System.Windows.Forms.ImageList imageList;
- protected bool infrequent;
- protected xd53b20b7b4b2a08a menuItems;
- protected bool radioCheck;
- protected System.Windows.Forms.Shortcut shortcut;
- protected object tag;
- protected string text;
- protected bool visible;
- private bool x49b363db01752634;
- private MenuItem x569ad91f8a39fe51;
- internal bool xb2504b89d66feca9;
- internal Form xb7d28b7a6d50662f;
- public event EventHandler Click;
- public event x26569a56dfbc2c6d PopupEnd;
- public event x26569a56dfbc2c6d PopupStart;
- public event x5282b9c42ea1abce PropertyChanged;
- public event EventHandler Update;
- public x5f4b657f68f87baa()
- {
- this.InternalConstruct("MenuItem", null, -1, System.Windows.Forms.Shortcut.None, null);
- }
- public x5f4b657f68f87baa(string text)
- {
- this.InternalConstruct(text, null, -1, System.Windows.Forms.Shortcut.None, null);
- }
- public x5f4b657f68f87baa(string text, EventHandler clickHandler)
- {
- this.InternalConstruct(text, null, -1, System.Windows.Forms.Shortcut.None, clickHandler);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.Shortcut shortcut)
- {
- this.InternalConstruct(text, null, -1, shortcut, null);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex)
- {
- this.InternalConstruct(text, imageList, imageIndex, System.Windows.Forms.Shortcut.None, null);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
- {
- this.InternalConstruct(text, null, -1, shortcut, clickHandler);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, EventHandler clickHandler)
- {
- this.InternalConstruct(text, imageList, imageIndex, System.Windows.Forms.Shortcut.None, clickHandler);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut)
- {
- this.InternalConstruct(text, imageList, imageIndex, shortcut, null);
- }
- public x5f4b657f68f87baa(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
- {
- this.InternalConstruct(text, imageList, imageIndex, shortcut, clickHandler);
- }
- protected void InternalConstruct(string text, System.Windows.Forms.ImageList imageList, int imageIndex, System.Windows.Forms.Shortcut shortcut, EventHandler clickHandler)
- {
- this.text = text;
- this.imageList = imageList;
- this.imageIndex = imageIndex;
- this.shortcut = shortcut;
- this.description = text;
- if (clickHandler != null)
- {
- this.x98992f4120a73bb9 = (EventHandler) Delegate.Combine(this.x98992f4120a73bb9, clickHandler);
- }
- this.enabled = true;
- this.ichecked = false;
- this.radioCheck = false;
- this.ibreak = false;
- this.tag = null;
- this.visible = true;
- this.infrequent = false;
- this.image = null;
- this.menuItems = new xd53b20b7b4b2a08a();
- }
- public virtual void OnClick(EventArgs e)
- {
- if (this.x98992f4120a73bb9 != null)
- {
- this.x98992f4120a73bb9(this, e);
- }
- }
- public virtual void OnPopupEnd()
- {
- if (this.x1b233dbc8c05d73f != null)
- {
- this.x1b233dbc8c05d73f(this);
- }
- }
- public virtual void OnPopupStart()
- {
- if (this.x3b2905fe94e52614 != null)
- {
- this.x3b2905fe94e52614(this);
- }
- }
- public virtual void OnPropertyChanged(x879a106b0501b9dc prop)
- {
- if (this.x0ad6cb77c00e4e89 != null)
- {
- this.x0ad6cb77c00e4e89(this, prop);
- }
- }
- public virtual void OnUpdate(EventArgs e)
- {
- if (this.x295cb4a1df7a5add != null)
- {
- this.x295cb4a1df7a5add(this, e);
- }
- }
- public void PerformClick()
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- this.x569ad91f8a39fe51.PerformClick();
- }
- else
- {
- this.OnUpdate(EventArgs.Empty);
- this.OnClick(EventArgs.Empty);
- }
- }
- public MenuItem AttachedMenuItem
- {
- get
- {
- return this.x569ad91f8a39fe51;
- }
- set
- {
- this.x569ad91f8a39fe51 = value;
- }
- }
- [DefaultValue(false)]
- public bool Break
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Break;
- }
- return this.ibreak;
- }
- set
- {
- if (this.ibreak != value)
- {
- this.ibreak = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Break);
- }
- }
- }
- [DefaultValue(false)]
- public bool Checked
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Checked;
- }
- return this.ichecked;
- }
- set
- {
- if (this.ichecked != value)
- {
- this.ichecked = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Checked);
- }
- }
- }
- [DefaultValue(""), Localizable(true)]
- public string Description
- {
- get
- {
- return this.description;
- }
- set
- {
- this.description = value;
- }
- }
- [DefaultValue(true)]
- public bool Enabled
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Enabled;
- }
- return this.enabled;
- }
- set
- {
- if (this.enabled != value)
- {
- this.enabled = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Enabled);
- }
- }
- }
- [DefaultValue((string) null)]
- public System.Drawing.Image Image
- {
- get
- {
- return this.image;
- }
- set
- {
- if (this.image != value)
- {
- this.image = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Image);
- }
- }
- }
- [DefaultValue(-1)]
- public int ImageIndex
- {
- get
- {
- return this.imageIndex;
- }
- set
- {
- if (this.imageIndex != value)
- {
- this.imageIndex = value;
- this.OnPropertyChanged(x879a106b0501b9dc.ImageIndex);
- }
- }
- }
- [DefaultValue((string) null)]
- public System.Windows.Forms.ImageList ImageList
- {
- get
- {
- return this.imageList;
- }
- set
- {
- if (this.imageList != value)
- {
- this.imageList = value;
- this.OnPropertyChanged(x879a106b0501b9dc.ImageList);
- }
- }
- }
- [DefaultValue(false)]
- public bool Infrequent
- {
- get
- {
- return this.infrequent;
- }
- set
- {
- if (this.infrequent != value)
- {
- this.infrequent = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Infrequent);
- }
- }
- }
- [Browsable(false)]
- public bool IsParent
- {
- get
- {
- return (this.menuItems.Count > 0);
- }
- }
- [DefaultValue(false)]
- public bool MdiList
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.MdiList;
- }
- return this.x49b363db01752634;
- }
- set
- {
- if (this.x49b363db01752634 != value)
- {
- this.x49b363db01752634 = value;
- }
- }
- }
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- public xd53b20b7b4b2a08a MenuCommands
- {
- get
- {
- return this.menuItems;
- }
- }
- [DefaultValue(false)]
- public bool RadioCheck
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.RadioCheck;
- }
- return this.radioCheck;
- }
- set
- {
- if (this.radioCheck != value)
- {
- this.radioCheck = value;
- this.OnPropertyChanged(x879a106b0501b9dc.RadioCheck);
- }
- }
- }
- [DefaultValue(typeof(System.Windows.Forms.Shortcut), "None")]
- public System.Windows.Forms.Shortcut Shortcut
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Shortcut;
- }
- return this.shortcut;
- }
- set
- {
- if (this.shortcut != value)
- {
- this.shortcut = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Shortcut);
- }
- }
- }
- [DefaultValue((string) null)]
- public object Tag
- {
- get
- {
- return this.tag;
- }
- set
- {
- this.tag = value;
- }
- }
- [Localizable(true), DefaultValue("MenuItem")]
- public string Text
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Text;
- }
- return this.text;
- }
- set
- {
- if (this.text != value)
- {
- this.text = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Text);
- }
- }
- }
- [DefaultValue(true)]
- public bool Visible
- {
- get
- {
- if (this.x569ad91f8a39fe51 != null)
- {
- return this.x569ad91f8a39fe51.Visible;
- }
- return this.visible;
- }
- set
- {
- if (this.visible != value)
- {
- this.visible = value;
- this.OnPropertyChanged(x879a106b0501b9dc.Visible);
- }
- }
- }
- internal delegate void x5282b9c42ea1abce(x5f4b657f68f87baa item, x5f4b657f68f87baa.x879a106b0501b9dc prop);
- internal enum x879a106b0501b9dc
- {
- Text,
- Enabled,
- ImageIndex,
- ImageList,
- Image,
- Shortcut,
- Checked,
- RadioCheck,
- Break,
- Infrequent,
- Visible,
- Description
- }
- }
- }