Source/Ribbon/QatCustomizePanel.cs

(开头部分) 25KB

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

using System;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using DevComponents.DotNetBar.Controls;

namespace DevComponents.DotNetBar.Ribbon
{
    /// <summary>
    /// Represents the Quick Access Toolbar customization panel which can be used on the custom QAT customization dialogs
    /// so customization of Quick Access Toolbar can be reused.
    /// </summary>
    public class QatCustomizePanel : UserControl
    {
        #region Private/Public variables
        /// <summary>
        /// Gets reference to the internal ItemPanel control that displays the commands for selected category.
        /// </summary>
        public ItemPanel itemPanelCommands;
        /// <summary>
        /// Gets reference to the ItemPanel control that displays the Quick Access Toolbar Items.
        /// </summary>
        public ItemPanel itemPanelQat;
        /// <summary>
        /// Gets reference to the button that perform addition of commands to the Quick Access Toolbar.
        /// </summary>
        public ButtonX buttonAddToQat;
        /// <summary>
        /// Gets reference to the button that perform removal of commands from the Quick Access Toolbar.
        /// </summary>
        public ButtonX buttonRemoveFromQat;
        /// <summary>
        /// Gets reference to the combo box control that holds all categories.
        /// </summary>
        public ComboBoxEx comboCategories;
        /// <summary>
        /// Gets reference to the combo box categories label control.
        /// </summary>
        public Label labelCategories;
        /// <summary>
        /// Gets reference to the check box that changes the placement of the Quick Access Toolbar.
        /// </summary>
        public Controls.CheckBoxX checkQatBelowRibbon;

        private Hashtable m_Categories = new Hashtable();
        private bool m_DataChanged = false;
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        #endregion

        #region Constructor

        public QatCustomizePanel()
        {
            this.SetStyle(ControlStyles.UserPaint, true);
后面还有 553 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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