public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            // header Item
            DesignerActionHeaderItem hInfo = new DesignerActionHeaderItem("请选择Grid控件", "Info");
            DesignerActionHeaderItem hAction = new DesignerActionHeaderItem("绑定中文标题", "Action");
            DesignerActionHeaderItem hDescription = new DesignerActionHeaderItem("将实体中的Comments标签值,绑定到Grid控件的标题中.");

            items.Add(hInfo);
            items.Add(hAction);
            items.Add(hDescription);

            items.Add(new DesignerActionPropertyItem("Grids", "表格控件", "Info", ""));
            items.Add(new DesignerActionMethodItem(this, "RefreshGridControls", "绑定Comments标签", "Action", true));

            return items;
        }
                public override DesignerActionItemCollection GetSortedActionItems()
                {
                    if (this.items == null)
                    {
                        items = new DesignerActionItemCollection();
                        DesignerActionHeaderItem TasksHead = new DesignerActionHeaderItem(Resources.VALIDATOR_ACTIONLIST_TASKS);
                        items.Add(new DesignerActionMethodItem(this, "ClearValidationInfos", Resources.VALIDATOR_ACTIONLIST_TASKS_CLEARVALIDATIONINFOS, TasksHead.Category, true));
                    }

                    return this.items;
                }
Ejemplo n.º 3
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("Border", "Border", "500", "Add/Remove Border from TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Plain", "Plain", "500", "Render the TabPanel without a background image"));
            this.AddPropertyItem(new DesignerActionPropertyItem("AutoPostBack", "AutoPostBack", "500", "Automatically PostBack on Tab Changed"));
            this.AddPropertyItem(new DesignerActionPropertyItem("EnableTabScroll", "Enable Tab Scrolling", "500", "Enable scrolling to tabs that may be invisible"));
            this.AddPropertyItem(new DesignerActionPropertyItem("TabPosition", "Tab Position", "500", "The position where the Tabs should be rendered"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the TabPanel"));
            this.AddPropertyItem(new DesignerActionPropertyItem("ActiveTabIndex", "Active Tab", "500", "The numeric index of the Tab that should be initially activated"));

            DesignerActionHeaderItem activeTabHeader = new DesignerActionHeaderItem("Edit Tab Properties", "600");
            DesignerActionPropertyItem tabs = new DesignerActionPropertyItem("Tabs", "Select Tab", "600");
            DesignerActionPropertyItem tabID = new DesignerActionPropertyItem("TabID", "ID", "600");
            DesignerActionPropertyItem title = new DesignerActionPropertyItem("Title", "Title", "600");
            DesignerActionPropertyItem iconCls = new DesignerActionPropertyItem("Icon", "Icon", "600", "The Icon to use");
            DesignerActionPropertyItem closable = new DesignerActionPropertyItem("Closable", "Closable", "600", "Check to disable Tab");
            DesignerActionPropertyItem disabled = new DesignerActionPropertyItem("Disabled", "Disabled", "600", "Allow the user to close the Tab");

            if (this.ActiveTabIndexIsValid)
            {
                this.AddHeaderItem(activeTabHeader);
                this.AddPropertyItem(tabID);
                this.AddPropertyItem(title);
                this.AddPropertyItem(iconCls);
                this.AddPropertyItem(closable);
                this.AddPropertyItem(disabled);
            }
            else
            {
                this.RemovePropertyItem(disabled);
                this.RemovePropertyItem(closable);
                this.RemovePropertyItem(iconCls);
                this.RemovePropertyItem(title);
                this.RemovePropertyItem(tabID);
                this.RemoveHeaderItem(activeTabHeader);
            }

            this.AddHeaderItem(new DesignerActionHeaderItem("Operations", "700"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAtBegin", "Insert Tab at Start", "700", "Insert Tab at Start"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAtEnd", "Insert Tab at End", "700", "Insert Tab at End"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "AddTabAfterActive", "Insert Tab after Active Tab", "700", "Insert Tab after Active Tab"));
            this.AddMethodItem(new DesignerActionMethodItem(this, "RemoveActiveTab", "Remove Active Tab", "700", "Remove Active Tab"));

            return base.GetSortedActionItems();
        }
Ejemplo n.º 4
0
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection actions = new DesignerActionItemCollection();
                PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(this._designer.Component);
                PropertyDescriptor actionableProperty;

                actionableProperty = properties["LeftItems"];
                if (actionableProperty != null && actionableProperty.IsBrowsable)
                {
                    DesignerActionMethodItem editLeftItemsAction = new DesignerActionMethodItem(this, "EditLeftItems", "Edit Left Items...", "LeftData", "Edit the items visible in the left list");
                    actions.Add(editLeftItemsAction);
                }

                actionableProperty = properties["RightItems"];
                if (actionableProperty != null && actionableProperty.IsBrowsable)
                {
                    actions.Add(new DesignerActionMethodItem(this, "EditRightItems", "Edit Right Items...", "RightData", "Edit the items visible in the right list"));
                }

                DesignerActionHeaderItem behaviorHeader = new DesignerActionHeaderItem("Behavior", "Behavior");
                actions.Add(behaviorHeader);

                actionableProperty = properties["EnableMoveAll"];
                if ((actionableProperty != null) && actionableProperty.IsBrowsable)
                {
                    actions.Add(new DesignerActionPropertyItem("EnableMoveAll", "Toggle EnableMoveAll", "Behavior", "Toggles the visibility of the buttons which move all items"));
                }

                actionableProperty = properties["EnableMoveUpDown"];
                if ((actionableProperty != null) && actionableProperty.IsBrowsable)
                {
                    actions.Add(new DesignerActionPropertyItem("EnableMoveUpDown", "Toggle EnableMoveUpDown", "Behavior", "Toggles the visibility of the buttons which move chosen items up and down"));
                }

                return actions;
            }
Ejemplo n.º 5
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection helpTooltipItems = new DesignerActionItemCollection();

            DesignerActionHeaderItem header = new DesignerActionHeaderItem("Help Tool Tip");
            helpTooltipItems.Add(header);

            // Key Help tooltip properties.
            DesignerActionPropertyItem tip = new DesignerActionPropertyItem("HelpText", "Help Text", "Display", "The help message to display in the tooltip when user clicks on the control.");
            helpTooltipItems.Add(tip);

            return helpTooltipItems;
        }