Source/CustomizeItem.cs

(开头部分) 29KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace DevComponents.DotNetBar
{
    using System;
	using System.Drawing;
	using System.Resources;
    using System.ComponentModel;

    /// <summary>
    /// Defines an item that allows the toolbar customization.
    /// </summary>
    [System.ComponentModel.ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false)]
    public class CustomizeItem:PopupItem
    {
		private bool m_MouseOver;
		private const int FIXED_SIZE=14;
		private string m_CustomizeStr="",m_ResetStr="";
		
		private string m_ThisToolTip;

		private bool m_Localized=false;

		private bool m_CustomizeItemVisible=true;
		private bool m_AutoSizeMenuImages=true;
		private System.Drawing.Size m_MenuImageSize=Size.Empty;

		/// <summary>
		/// Creates new instance of CustomizeItem object.
		/// </summary>
        public CustomizeItem()//:base()
        {
			this.GlobalItem=false;
			m_MouseOver=false;
			m_SystemItem=true;
			this.CanCustomize=false;

			LoadResources();

			this.AutoCollapseOnClick=false;

			m_MenuImageSize=new Size(16,16);
        }

		/// <summary>
		/// Returns copy of CustomizeItem item
		/// </summary>
		public override BaseItem Copy()
		{
			CustomizeItem objCopy=new CustomizeItem();
			this.CopyToItem(objCopy);
			objCopy.CustomizeItemVisible=m_CustomizeItemVisible;
			return objCopy;
		}

		/// <summary>
		/// Called when item container has changed. If you override this method you must call the base implementation to allow default processing to occur.
		/// </summary>
		/// <param name="objOldContainer">Previous container of the item.</param>
		protected internal override void OnContainerChanged(object objOldContainer)
		{
			base.OnContainerChanged(objOldContainer);
后面还有 850 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。