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

                // Don't add the item if there's a service path specified or we can't get the event binding service
                PropertyDescriptor pagePathProperty = TypeDescriptor.GetProperties(Component)[_attribute.ServicePathProperty];

                if ((pagePathProperty == null || (pagePathProperty != null && string.IsNullOrEmpty(pagePathProperty.GetValue(Component) as string))) && (GetService(typeof(IEventBindingService)) != null))
                {
                    string name = string.Format(CultureInfo.CurrentCulture, "Add {0} page method", _attribute.FriendlyName);
                    items.Add(new DesignerActionMethodItem(this, "AddPageMethod", name, "Page Methods", name, true));
                }

                return(items);
            }
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            //items.Add(new DesignerActionPropertyItem("BackColor",
            //                     "Back Color", "Appearance",
            //                     "Selects the background color."));
            //items.Add(new DesignerActionPropertyItem("ForeColor",
            //                     "Fore Color", "Appearance",
            //                     "Selects the foreground color."));

            items.Add(new DesignerActionPropertyItem("ProgressStyle",
                                                     "ProgressStyle", "Appearance",
                                                     "Sets the progress style."));

            items.Add(new DesignerActionPropertyItem("Value",
                                                     "Value", "Appearance",
                                                     "Sets the value."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

            return(items);
        }
Example #3
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create list to store designer action items
            DesignerActionItemCollection actionItems = new DesignerActionItemCollection();

            // Add Appearance category header text
            actionItems.Add(new DesignerActionHeaderItem("Appearance"));
            // Add Appearance category descriptive label
            actionItems.Add(new DesignerActionTextItem("Properties that affect how the diagram control looks.", "Appearance"));
            actionItems.Add(
                new DesignerActionPropertyItem(
                    "BackgroundType",
                    "BackgroundType",
                    "Appearance",
                    "The type of canvas background"));
            actionItems.Add(
                new DesignerActionPropertyItem(
                    "BackColor",
                    "BackColor",
                    "Appearance",
                    "The description..."));

            return(actionItems);
        }
        /*
         * GetSortedActionItems
         */

        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> objects contained in the list.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> array that contains the items in this list.
        /// </returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            items.Add(
                new DesignerActionPropertyItem(
                    "Image",
                    Resources.ActionList_PictureBox_Image,
                    Resources.Category_Properties,
                    Resources.Description_PictureBox_Image
                    )
                );

            items.Add(
                new DesignerActionPropertyItem(
                    "DisplayMode",
                    Resources.ActionList_PictureBox_DisplayMode,
                    Resources.Category_Properties,
                    Resources.Description_PictureBox_DisplayMode
                    )
                );

            return(items);
        }
Example #5
0
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> objects contained in the list.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> array that contains the items in this list.
        /// </returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            items.Add(
                new DesignerActionPropertyItem(
                    "Watermark"
                    , designRes.ActionList_Watermark_Watermark
                    , ctrlRes.Category_Appearance
                    , ctrlRes.Description_Watermark_Watermark
                    )
                );

            items.Add(
                new DesignerActionPropertyItem(
                    "WatermarkTransparency"
                    , designRes.ActionList_Watermark_WatermarkTransparency
                    , ctrlRes.Category_Appearance
                    , ctrlRes.Description_Watermark_WatermarkTransparency
                    )
                );

            return(items);
        }
Example #6
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            var items = new DesignerActionItemCollection();

            items.Add(new DesignerActionTextItem("HMI Professional Edition", "HMI Professional Edition"));
            items.Add(new DesignerActionMethodItem(this, "ShowTagDesignerForm", "Choote Tag"));
            items.Add(new DesignerActionPropertyItem("DecimalPosition", "DecimalPosition"));
            items.Add(new DesignerActionPropertyItem("NumberOfDigits", "NumberOfDigits"));
            items.Add(new DesignerActionPropertyItem("BackColor", "BackColor"));
            items.Add(new DesignerActionPropertyItem("ForeColor", "ForeColor"));
            items.Add(new DesignerActionPropertyItem("PLCAddressValue", "PLCAddressValue"));

            return(items);
        }
Example #7
0
            public override DesignerActionItemCollection GetSortedActionItems()
            {
                DesignerActionItemCollection items = new DesignerActionItemCollection();

                PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(this._designer.Component);
                PropertyDescriptor           actionableProperty;

                actionableProperty = properties["DataGroupField"];
                if (actionableProperty != null && actionableProperty.IsBrowsable)
                {
                    DesignerActionPropertyItem dataGroupField = new DesignerActionPropertyItem("DataGroupField", "DataGroupField", "Data");
                    items.Add(dataGroupField);
                }

                return(items);
            }
Example #8
0
        // Implementation of this abstract method creates smart tag  items,
        // associates their targets, and collects into list.
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            var items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("HMI Professional"));
            items.Add(new DesignerActionMethodItem(this, "ShowTagList", "Choose Tag"));
            items.Add(new DesignerActionPropertyItem("BackColor", "BackColor"));
            items.Add(new DesignerActionPropertyItem("ForeColor", "ForeColor"));
            items.Add(new DesignerActionPropertyItem("Font", "Font"));
            items.Add(new DesignerActionPropertyItem("PLCAddressValue", "PLCAddressValue"));
            items.Add(new DesignerActionPropertyItem("Text", "Text"));
            return(items);
        }
Example #9
0
        ///<summary>
        ///Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> objects contained in the list.
        ///</summary>
        ///
        ///<returns>
        ///A <see cref="T:System.ComponentModel.Design.DesignerActionItem"></see> array that contains the items in this list.
        ///</returns>
        ///
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            items.Add(new DesignerActionHeaderItem("Appearance", "Appearance"));
            items.Add(new DesignerActionMethodItem(this, "Reset", "Reset", "Appearance", true));
            items.Add(new DesignerActionMethodItem(this, "ForeColor", "ForeColor", "Appearance", true));
            items.Add(new DesignerActionPropertyItem("Font", "Font", "Appearance"));

            items.Add(new DesignerActionHeaderItem("Behavior", "Behavior"));
            items.Add(new DesignerActionPropertyItem("Text", "Text", "Behavior"));
            items.Add(new DesignerActionPropertyItem("IsLink", "Is Link", "Behavior"));
            return(items);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            var items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Layout"));
            items.Add(new DesignerActionPropertyItem("Multiline", "Multiline", "Layout"));
            items.Add(new DesignerActionPropertyItem("Text", "Text", "Layout"));
            items.Add(new DesignerActionPropertyItem("ScrollBars", "ScrollBars", "Layout"));
            items.Add(new DesignerActionPropertyItem("Dock", "Dock", "Layout"));
            items.Add(new DesignerActionHeaderItem("Action"));
            items.Add(new DesignerActionPropertyItem("ContextMenuStrip", "ContextMenuStrip", "Action"));
            return(items);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            var items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_Name", "Form:", "Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_Text", "Text:", "Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_StartPosition", "Start Position:", "Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_TopMost", "TopMost:", "Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_Size", "Size:", "Form Layout"));
            items.Add(new DesignerActionPropertyItem("Form_ContextMenuStrip", "ContextMenuStrip:", "Form Layout"));
            return(items);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection actionItems = new DesignerActionItemCollection();

            actionItems.Add(new DesignerActionHeaderItem("Appearance"));
            actionItems.Add(new DesignerActionPropertyItem("PanelBackStyle", "Back style", "Appearance"));
            actionItems.Add(new DesignerActionPropertyItem("TransparentBackground", "Transparent background", "Appearance"));

            actionItems.Add(new DesignerActionHeaderItem("Visuals"));
            actionItems.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals"));

            actionItems.Add(new DesignerActionMethodItem(this, "AddTab", "Add tab", "Actions", true));
            actionItems.Add(new DesignerActionMethodItem(this, "RemoveTab", "Remove tab", "Actions", true));

            actionItems.Add(new DesignerActionMethodItem(this, "ToggleDockStyle", GetDockStyleText()));

            return(actionItems);
        }
Example #13
0
        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create a new collection for holding the single item we want to create
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a control instance at design time
            if (_label != null)
            {
                // Add the list of label specific actions
                actions.Add(new DesignerActionHeaderItem("Appearance"));
                actions.Add(new DesignerActionPropertyItem("LabelStyle", "Style", "Appearance", "Label style"));
                actions.Add(new DesignerActionPropertyItem("Orientation", "Orientation", "Appearance", "Visual orientation"));
                actions.Add(new DesignerActionHeaderItem("Values"));
                actions.Add(new DesignerActionPropertyItem("Text", "Text", "Values", "Label text"));
                actions.Add(new DesignerActionPropertyItem("ExtraText", "ExtraText", "Values", "Label extra text"));
                actions.Add(new DesignerActionPropertyItem("Image", "Image", "Values", "Label image"));
                actions.Add(new DesignerActionHeaderItem("Visuals"));
                actions.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals", "Palette applied to drawing"));
            }

            return(actions);
        }
Example #14
0
        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create a new collection for holding the single item we want to create
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a control instance at design time
            if (_listBox != null)
            {
                // Add the list of list box specific actions
                actions.Add(new DesignerActionHeaderItem("Appearance"));
                actions.Add(new DesignerActionPropertyItem("BackStyle", "Back Style", "Appearance", "Style used to draw background."));
                actions.Add(new DesignerActionPropertyItem("BorderStyle", "Border Style", "Appearance", "Style used to draw the border."));
                actions.Add(new DesignerActionPropertyItem("ItemStyle", "Item Style", "Appearance", "How to display list items."));
                actions.Add(new DesignerActionHeaderItem("Behavior"));
                actions.Add(new DesignerActionPropertyItem("SelectionMode", "Selection Mode", "Behavior", "Determines the selection mode."));
                actions.Add(new DesignerActionPropertyItem("Sorted", "Sorted", "Behavior", "Should items be sorted according to string."));
                actions.Add(new DesignerActionHeaderItem("Visuals"));
                actions.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals", "Palette applied to drawing"));
            }

            return(actions);
        }
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items      = new DesignerActionItemCollection();
            PropertyDescriptor           descriptor = TypeDescriptor.GetProperties(this._controlDesigner.Component)["DataSourceID"];

            if ((descriptor != null) && descriptor.IsBrowsable)
            {
                items.Add(new DesignerActionPropertyItem("DataSourceID", System.Design.SR.GetString("BaseDataBoundControl_ConfigureDataVerb"), System.Design.SR.GetString("BaseDataBoundControl_DataActionGroup"), System.Design.SR.GetString("BaseDataBoundControl_ConfigureDataVerbDesc")));
            }
            ControlDesigner designer = this._dataSourceDesigner as ControlDesigner;

            if (designer != null)
            {
                ((DesignerActionPropertyItem)items[0]).RelatedComponent = designer.Component;
            }
            return(items);
        }
Example #16
0
        public void DesignerActionItemCollection_Item_Set_GetReturnsExpected()
        {
            var collection = new DesignerActionItemCollection();
            var value1     = new SubDesignerActionItem("displayName", "category", "description");
            var value2     = new SubDesignerActionItem("displayName", "category", "description");

            collection.Add(value1);
            Assert.Same(value1, Assert.Single(collection));

            collection[0] = value2;
            Assert.Same(value2, Assert.Single(collection));
            Assert.Same(value2, collection[0]);
            Assert.False(collection.Contains(value1));
            Assert.Equal(-1, collection.IndexOf(value1));
            Assert.True(collection.Contains(value2));
            Assert.Equal(0, collection.IndexOf(value2));
        }
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection designerActionItemCollection = new DesignerActionItemCollection();

            designerActionItemCollection.Add(new DesignerActionHeaderItem("Farb-Eigenschaften"));
            designerActionItemCollection.Add(new DesignerActionPropertyItem("BoxColor", "BoxColor:", "Farb-Eigenschaften", "Die Hauptfarbe des CheckCircles."));
            designerActionItemCollection.Add(new DesignerActionPropertyItem("FillColor", "FillColor:", "Farb-Eigenschaften", "Die Füll-Farbe des CheckCircles."));
            designerActionItemCollection.Add(new DesignerActionPropertyItem("BorderColor", "BorderColor:", "Farb-Eigenschaften", "Die Farbe der Umrandung des CheckCircles."));
            designerActionItemCollection.Add(new DesignerActionHeaderItem("Eigenschaften"));
            designerActionItemCollection.Add(new DesignerActionPropertyItem("Style", "Style:", "Eigenschaften", "Der Style der MetroProgressbar."));
            return(designerActionItemCollection);
        }
Example #18
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            items.Add(new DesignerActionMethodItem(this, "InvokeItemsDialog", System.Design.SR.GetString("ListViewActionListEditItemsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditItemsDescription"), true));
            items.Add(new DesignerActionMethodItem(this, "InvokeColumnsDialog", System.Design.SR.GetString("ListViewActionListEditColumnsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditColumnsDescription"), true));
            items.Add(new DesignerActionMethodItem(this, "InvokeGroupsDialog", System.Design.SR.GetString("ListViewActionListEditGroupsDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListEditGroupsDescription"), true));
            items.Add(new DesignerActionPropertyItem("View", System.Design.SR.GetString("ListViewActionListViewDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListViewDescription")));
            items.Add(new DesignerActionPropertyItem("SmallImageList", System.Design.SR.GetString("ListViewActionListSmallImagesDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListSmallImagesDescription")));
            items.Add(new DesignerActionPropertyItem("LargeImageList", System.Design.SR.GetString("ListViewActionListLargeImagesDisplayName"), System.Design.SR.GetString("PropertiesCategoryName"), System.Design.SR.GetString("ListViewActionListLargeImagesDescription")));
            return(items);
        }
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            items.Add(new DesignerActionPropertyItem("BackColor",
                                                     "Back Color", "Appearance",
                                                     "Selects the background color."));

            items.Add(new DesignerActionPropertyItem("BackgroundColor",
                                                     "Background Color", "Appearance",
                                                     "Sets the background color."));


            items.Add(new DesignerActionPropertyItem("SquareColor",
                                                     "Square Color", "Appearance",
                                                     "Sets the highlight color."));

            items.Add(new DesignerActionPropertyItem("SelectedTabColor",
                                                     "Selected Tab Color", "Appearance",
                                                     "Sets the background color of the selected tab."));

            items.Add(new DesignerActionPropertyItem("ShowOuterBorders",
                                                     "Show Outer Borders", "Appearance",
                                                     "Sets the outer border."));


            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

            return(items);
        }
Example #20
0
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem"/>
        /// objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem"/>
        /// array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            items.Add(new DesignerActionPropertyItem("EnablePaging", "Enable Paging", "General"));
            items.Add(new DesignerActionPropertyItem("EnableSorting", "Enable Sorting", "General"));
            items.Add(new DesignerActionPropertyItem("EnableTransaction", "Enable Transaction", "General"));

            items.Add(new DesignerActionPropertyItem("EnableCaching", "Enable Caching", "Caching"));
            items.Add(new DesignerActionPropertyItem("CacheDuration", "Cache Duration", "Caching"));

            items.Add(new DesignerActionPropertyItem("Filter", "Filter", "Data"));
            items.Add(new DesignerActionPropertyItem("Sort", "Sort", "Data"));

            return(items);
        }
        // Implementation of this abstract method creates smart tag
        // items, associates their targets, and collects into list.
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create 8 items.
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            // Begin by creating the headers.
            items.Add(new DesignerActionHeaderItem("Appearance"));
            items.Add(new DesignerActionHeaderItem("Information"));

            // Add items that wrap the properties.
            items.Add(new DesignerActionPropertyItem("ColorA",
                                                     "Gradient Color A", "Appearance",
                                                     "Sets the first color in the gradient."));

            items.Add(new DesignerActionPropertyItem("ColorB",
                                                     "Gradient Color B", "Appearance",
                                                     "Sets the second color in the gradient."));

            items.Add(new DesignerActionPropertyItem("GradientFillStyle",
                                                     "Gradient Fill Style", "Appearance",
                                                     "Sets the blend direction for the gradient."));

            // Add an action link.
            // This item is also added to the context menu
            // as a designer verb.
            items.Add(new DesignerActionMethodItem(this,
                                                   "ChooseRandomColors", "Randomize colors",
                                                   "Appearance",
                                                   "Chooses random colors for the gradient.",
                                                   true));

            // Create entries for static Information section.
            items.Add(new DesignerActionTextItem(
                          "Location: " + linkedControl.Location.ToString(),
                          "Information"));

            items.Add(new DesignerActionTextItem(
                          "Location: " + linkedControl.Size.ToString(),
                          "Information"));

            return(items);
        }
Example #22
0
        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a control instance at design time
            if (_workspace != null)
            {
                // Add the list of workspace specific actions
                actions.Add(new DesignerActionHeaderItem("Appearance"));
                actions.Add(new DesignerActionPropertyItem("ContainerBackStyle", "BackStyle", "Appearance", "Container background style"));
                actions.Add(new DesignerActionPropertyItem("SeparatorStyle", "SeparatorStyle", "Appearance", "Separator style"));
                actions.Add(new DesignerActionHeaderItem("Operation"));
                actions.Add(new DesignerActionPropertyItem("AllowResizing", "AllowResizing", "Operation", "Allow user to resize"));
                actions.Add(new DesignerActionPropertyItem("CompactFlags", "CompactFlags", "Operation", "Compacting flags"));
                actions.Add(new DesignerActionHeaderItem("Visuals"));
                actions.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals", "Palette applied to drawing"));
            }

            return(actions);
        }
Example #23
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            var items = new DesignerActionItemCollection();

            items.Add(new DesignerActionTextItem("HMI Professional Edition", "HMI Professional Edition"));
            items.Add(new DesignerActionMethodItem(this, "ShowTagDesignerForm", "Choote Tag"));
            items.Add(new DesignerActionPropertyItem("Shape", "Shape"));
            items.Add(new DesignerActionPropertyItem("OnColor", "OnColor"));
            items.Add(new DesignerActionPropertyItem("OffColor", "OffColor"));
            items.Add(new DesignerActionPropertyItem("TagName", "TagName"));

            return(items);
        }
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            items.Add(new DesignerActionPropertyItem("BackColor",
                                                     "Back Color", "Appearance",
                                                     "Selects the background color."));

            items.Add(new DesignerActionPropertyItem("ForeColor",
                                                     "Fore Color", "Appearance",
                                                     "Selects the foreground color."));

            items.Add(new DesignerActionPropertyItem("BorderTitleBox",
                                                     "Border TitleBox", "Appearance",
                                                     "Sets the titlebox color."));

            items.Add(new DesignerActionPropertyItem("BrushType",
                                                     "Brush Type", "Appearance",
                                                     "Sets the inner-background color."));

            items.Add(new DesignerActionPropertyItem("BrushTypeTitleBox",
                                                     "Brush Type TitleBox", "Appearance",
                                                     "Sets the background color for the titlebox."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

            return(items);
        }
Example #25
0
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            items.Add(new DesignerActionPropertyItem("Value",
                                                     "Value", "Appearance",
                                                     "Sets the value of the progress control."));

            items.Add(new DesignerActionPropertyItem("Maximum",
                                                     "Maximum", "Appearance",
                                                     "Sets the maximum value of the progress control."));

            items.Add(new DesignerActionPropertyItem("ProgressColor1",
                                                     "Progress Color1", "Appearance",
                                                     "Sets the progress control color."));

            items.Add(new DesignerActionPropertyItem("ProgressColor2",
                                                     "Progress Color2", "Appearance",
                                                     "Sets the progress control color."));

            items.Add(new DesignerActionPropertyItem("ProgressShape",
                                                     "Progress Shape", "Appearance",
                                                     "Sets the shape of the progress control."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

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

            items.Add(new DesignerActionMethodItem(this, "EditFields", System.Design.SR.GetString("DetailsView_EditFieldsVerb"), "Action", System.Design.SR.GetString("DetailsView_EditFieldsDesc")));
            items.Add(new DesignerActionMethodItem(this, "AddNewField", System.Design.SR.GetString("DetailsView_AddNewFieldVerb"), "Action", System.Design.SR.GetString("DetailsView_AddNewFieldDesc")));
            if (this.AllowMoveUp)
            {
                items.Add(new DesignerActionMethodItem(this, "MoveFieldUp", System.Design.SR.GetString("DetailsView_MoveFieldUpVerb"), "Action", System.Design.SR.GetString("DetailsView_MoveFieldUpDesc")));
            }
            if (this.AllowMoveDown)
            {
                items.Add(new DesignerActionMethodItem(this, "MoveFieldDown", System.Design.SR.GetString("DetailsView_MoveFieldDownVerb"), "Action", System.Design.SR.GetString("DetailsView_MoveFieldDownDesc")));
            }
            if (this.AllowRemoveField)
            {
                items.Add(new DesignerActionMethodItem(this, "RemoveField", System.Design.SR.GetString("DetailsView_RemoveFieldVerb"), "Action", System.Design.SR.GetString("DetailsView_RemoveFieldDesc")));
            }
            if (this.AllowPaging)
            {
                items.Add(new DesignerActionPropertyItem("EnablePaging", System.Design.SR.GetString("DetailsView_EnablePaging"), "Behavior", System.Design.SR.GetString("DetailsView_EnablePagingDesc")));
            }
            if (this.AllowInserting)
            {
                items.Add(new DesignerActionPropertyItem("EnableInserting", System.Design.SR.GetString("DetailsView_EnableInserting"), "Behavior", System.Design.SR.GetString("DetailsView_EnableInsertingDesc")));
            }
            if (this.AllowEditing)
            {
                items.Add(new DesignerActionPropertyItem("EnableEditing", System.Design.SR.GetString("DetailsView_EnableEditing"), "Behavior", System.Design.SR.GetString("DetailsView_EnableEditingDesc")));
            }
            if (this.AllowDeleting)
            {
                items.Add(new DesignerActionPropertyItem("EnableDeleting", System.Design.SR.GetString("DetailsView_EnableDeleting"), "Behavior", System.Design.SR.GetString("DetailsView_EnableDeletingDesc")));
            }
            return(items);
        }
Example #27
0
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            items.Add(new DesignerActionPropertyItem("BackColor",
                                                     "Back Color", "Appearance",
                                                     "Sets the background color."));

            items.Add(new DesignerActionPropertyItem("ForeColor",
                                                     "Fore Color", "Appearance",
                                                     "Sets the foreground color."));

            items.Add(new DesignerActionPropertyItem("AutoSize",
                                                     "Auto Size", "Appearance",
                                                     "Set to automaticallys size the text."));

            items.Add(new DesignerActionPropertyItem("Font",
                                                     "Font", "Appearance",
                                                     "Sets the font of the text."));

            items.Add(new DesignerActionPropertyItem("Text",
                                                     "Text", "Appearance",
                                                     "Sets the the of the control."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

            return(items);
        }
Example #28
0
        /// <summary>
        /// Returns the collection of <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> objects contained in the list.
        /// </summary>
        /// <returns>A <see cref="T:System.ComponentModel.Design.DesignerActionItem" /> array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));

            items.Add(new DesignerActionPropertyItem("BackColor",
                                                     "Back Color", "Appearance",
                                                     "Selects the background color."));

            items.Add(new DesignerActionPropertyItem("ForeColor",
                                                     "Fore Color", "Appearance",
                                                     "Selects the foreground color."));

            items.Add(new DesignerActionPropertyItem("PagesCount",
                                                     "Pages Count", "Appearance",
                                                     "Sets the page count."));

            items.Add(new DesignerActionPropertyItem("CurrentPage",
                                                     "Current Page", "Appearance",
                                                     "Sets the current page."));

            items.Add(new DesignerActionPropertyItem("NumPagesShown",
                                                     "Num Pages Shown", "Appearance",
                                                     "Set the number of pages shown."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Product: ");

            location.Append(colUserControl.ProductName);
            StringBuilder size = new StringBuilder("Version: ");

            size.Append(colUserControl.ProductVersion);
            items.Add(new DesignerActionTextItem(location.ToString(),
                                                 "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                                                 "Information"));

            return(items);
        }
Example #29
0
        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create a new collection for holding the single item we want to create
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a control instance at design time
            if (_groupBox != null)
            {
                // Add the list of panel specific actions
                actions.Add(new DesignerActionHeaderItem("Appearance"));
                actions.Add(new DesignerActionPropertyItem("GroupBackStyle", "Back style", "Appearance", "Background style"));
                actions.Add(new DesignerActionPropertyItem("GroupBorderStyle", "Border style", "Appearance", "Border style"));
                actions.Add(new DesignerActionPropertyItem("CaptionStyle", "Caption style", "Appearance", "Caption style"));
                actions.Add(new DesignerActionPropertyItem("CaptionEdge", "Caption edge", "Appearance", "Caption edge"));
                actions.Add(new DesignerActionPropertyItem("CaptionOverlap", "Caption overlap", "Appearance", "Caption overlap"));
                actions.Add(new DesignerActionHeaderItem("Visuals"));
                actions.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals", "Palette applied to drawing"));
            }

            return(actions);
        }
Example #30
0
        /// <summary>
        /// Returns the collection of DesignerActionItem objects contained in the list.
        /// </summary>
        /// <returns>A DesignerActionItem array that contains the items in this list.</returns>
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            // Create a new collection for holding the single item we want to create
            DesignerActionItemCollection actions = new DesignerActionItemCollection();

            // This can be null when deleting a control instance at design time
            if (_numericUpDown != null)
            {
                // Add the list of label specific actions
                actions.Add(new DesignerActionHeaderItem("Appearance"));
                actions.Add(new DesignerActionPropertyItem("InputControlStyle", "Style", "Appearance", "NumericUpDown display style."));
                actions.Add(new DesignerActionHeaderItem("Data"));
                actions.Add(new DesignerActionPropertyItem("Increment", "Increment", "Data", "NumericUpDown increment value."));
                actions.Add(new DesignerActionPropertyItem("Maximum", "Maximum", "Data", "NumericUpDown maximum value."));
                actions.Add(new DesignerActionPropertyItem("Minimum", "Minimum", "Data", "NumericUpDown minimum value."));
                actions.Add(new DesignerActionHeaderItem("Visuals"));
                actions.Add(new DesignerActionPropertyItem("PaletteMode", "Palette", "Visuals", "Palette applied to drawing"));
            }

            return(actions);
        }
Example #31
0
 /// <summary>
 /// Poulates the list of available actions of the Filmstrip Control.
 /// </summary>
 /// <returns>The list of availabe actions for the Filmstrip Control</returns>
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionPropertyItem("ControlBackground", "Control background colour", "Filmstrip properties"));
     items.Add(new DesignerActionPropertyItem("SelectedHighlight", "Selected highlight colour", "Filmstrip properties"));
     items.Add(new DesignerActionPropertyItem("MainImageLayout", "Main image layout style", "Filmstrip properties"));
     items.Add(new DesignerActionPropertyItem("ThumbsStripLocation", "Thumbs strip location", "Filmstrip properties"));
     items.Add(new DesignerActionPropertyItem("Dock", "Dock style", "Base properties"));
     return items;
 }
Example #32
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            DesignerActionItemCollection items = new DesignerActionItemCollection();

            //Define static section header entries.
            items.Add(new DesignerActionHeaderItem("Appearance"));
            items.Add(new DesignerActionHeaderItem("Information"));

            //Boolean property for locking color selections.
            items.Add(new DesignerActionPropertyItem("LockColors",
                             "Lock Colors", "Appearance",
                             "Locks the color properties."));
            if (!LockColors)
            {
                items.Add(new DesignerActionPropertyItem("BackColor",
                                 "Back Color", "Appearance",
                                 "Selects the background color."));
                items.Add(new DesignerActionPropertyItem("ForeColor",
                                 "Fore Color", "Appearance",
                                 "Selects the foreground color."));

                //This next method item is also added to the context menu 
                // (as a designer verb).

                items.Add(new DesignerActionMethodItem(this,
                                 "InvertColors", "Invert 4 Colors",
                                 "Appearance",
                                 "Inverts the fore and background colors.",
                                  true));
                items.Add(new DesignerActionMethodItem(this,
                                 "InvertColors", "Invert Colors 3",
                                 "Appearance",
                                 "Inverts the fore and background colors.",
                                  true));
            }
            items.Add(new DesignerActionPropertyItem("Text",
                             "Text String", "Appearance",
                             "Sets the display text."));

            //Create entries for static Information section.
            StringBuilder location = new StringBuilder("Location: ");
            location.Append(colLabel.Location);
            StringBuilder size = new StringBuilder("Size: ");
            size.Append(colLabel.Size);
            items.Add(new DesignerActionTextItem(location.ToString(),
                             "Information"));
            items.Add(new DesignerActionTextItem(size.ToString(),
                             "Information"));

            return items;
        }