public void Constructor ()
		{
			DesignerActionPropertyItem item =
				new DesignerActionPropertyItem ("myMember", "myDisplayName");
			Assert.AreEqual ("myMember", item.MemberName, "#1");
			Assert.AreEqual ("myDisplayName", item.DisplayName, "#2");
			Assert.IsNull (item.Category, "#3");
			Assert.IsNull (item.Description, "#4");
		}
Exemplo n.º 2
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("Text", "Text", "500", "Text to display if the field is empty"));
            this.AddPropertyItem(new DesignerActionPropertyItem("EmptyText", "Empty Text", "500", "Change the Text of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("AllowBlank", "AllowBlank", "500", "Ensure the length of the text is > 0"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the TextArea"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the TextArea"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Grow", "Grow", "500", "Change the TextArea to automatically grow and shrink to its content"));
            
            DesignerActionPropertyItem growmin = new DesignerActionPropertyItem("GrowMin", "Grow Min Size", "500", "The minimum width to allow when grow = true");
            DesignerActionPropertyItem growmax = new DesignerActionPropertyItem("GrowMax", "Grow Max Size", "500", "The maximum width to allow when grow = true");

            if (((TextArea)this.Control).Grow)
            {
                this.AddPropertyItem(growmin);
                this.AddPropertyItem(growmax);
            }
            else
            {
                this.RemovePropertyItem(growmin);
                this.RemovePropertyItem(growmax);
            }

            return base.GetSortedActionItems();
        }
 internal override sealed void UpdateActionItem(DesignerActionList actionList, DesignerActionItem actionItem, System.Windows.Forms.ToolTip toolTip, ref int currentTabIndex)
 {
     this._actionList = actionList;
     this._propertyItem = (DesignerActionPropertyItem) actionItem;
     this._propDesc = null;
     this._typeDescriptorContext = null;
     this._value = this.PropertyDescriptor.GetValue(actionList);
     this.OnPropertyTaskItemUpdated(toolTip, ref currentTabIndex);
     this._pushingValue = true;
     try
     {
         this.OnValueChanged();
     }
     finally
     {
         this._pushingValue = false;
     }
 }
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     DesignerActionPropertyItem item = new DesignerActionPropertyItem("DataSource", System.Design.SR.GetString("DataGridViewChooseDataSource")) {
         RelatedComponent = this.owner.Component
     };
     items.Add(item);
     return items;
 }
Exemplo n.º 5
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();
        }
Exemplo n.º 6
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("Text", "Text", "500", "Change the Text of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("EmptyText", "Empty Text", "500", "Change the Text of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("AllowBlank", "AllowBlank", "500", "Ensure the length of the text is > 0"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InputType", "Input Type", "500", "Change the input type of the control. [Text or Password]"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Grow", "Grow", "500", "Change the TextField to automatically grow and shrink to its content"));

            DesignerActionPropertyItem growmin = new DesignerActionPropertyItem("GrowMin", "Grow Min Size", "500", "The minimum width to allow when grow = true");
            DesignerActionPropertyItem growmax = new DesignerActionPropertyItem("GrowMax", "Grow Max Size", "500", "The maximum width to allow when grow = true");

            if (((TextField)this.Control).Grow)
            {
                this.AddPropertyItem(growmin);
                this.AddPropertyItem(growmax);
            }
            else
            {
                this.RemovePropertyItem(growmin);
                this.RemovePropertyItem(growmax);
            }

            return base.GetSortedActionItems();
        }
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     items.Add(new DesignerActionMethodItem(this, "EditRoleGroups", System.Design.SR.GetString("LoginView_EditRoleGroups"), string.Empty, System.Design.SR.GetString("LoginView_EditRoleGroupsDescription"), true));
     DesignerActionPropertyItem item = new DesignerActionPropertyItem("View", System.Design.SR.GetString("WebControls_Views"), string.Empty, System.Design.SR.GetString("WebControls_ViewsDescription")) {
         ShowInSourceView = false
     };
     items.Add(item);
     items.Add(new DesignerActionMethodItem(this, "LaunchWebAdmin", System.Design.SR.GetString("Login_LaunchWebAdmin"), string.Empty, System.Design.SR.GetString("Login_LaunchWebAdminDescription"), true));
     return items;
 }
            public override DesignerActionItemCollection GetSortedActionItems() {
                var items = new DesignerActionItemCollection();

                var addItem = new DesignerActionMethodItem(this, "OnAddTabPanel", "Add Tab Panel", true);
                var removeItem = new DesignerActionMethodItem(this, "OnRemoveTabPanel", "Remove Tab Panel", true);
                var hideContentOverflowItem = new DesignerActionPropertyItem("HideOverflowContent", "Hide overflow content at design-time");
                items.Add(addItem);
                items.Add(removeItem);
                items.Add(hideContentOverflowItem);

                return items;
            }
Exemplo n.º 9
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddHeaderItem(new DesignerActionHeaderItem("Positioning", "600"));
            this.AddHeaderItem(new DesignerActionHeaderItem("Actions", "700"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Title", "Title", "500", "Change the Title of the Window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Width", "Width", "500", "Change the Width of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Height", "Height", "500", "Change the Height of the control"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Icon", "Icon", "500", "Set an icon to use in the Title bar"));
            
            this.AddPropertyItem(new DesignerActionPropertyItem("Hidden", "Show on Page Load", "600", "Automatically show the window on Page Load"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InitCenter", "Center on Page Load", "600", "Center this Window in the viewport on Page Load"));

            DesignerActionPropertyItem pageX = new DesignerActionPropertyItem("PageX", "PageX", "600", "The position in pixels from the left of the view port (browser window)");
            DesignerActionPropertyItem pageY = new DesignerActionPropertyItem("PageY", "PageY", "600", "The position in pixels from the addToStart of the view port (browser window)");

            if (this.InitCenter)
            {
                this.RemovePropertyItem(pageX);
                this.RemovePropertyItem(pageY);
            }
            else
            {
                this.AddPropertyItem(pageX);
                this.AddPropertyItem(pageY);
            }
            
            this.AddPropertyItem(new DesignerActionPropertyItem("Collapsible", "Collapsible", "700", "Allow the user to collapse the window"));
            this.AddPropertyItem(new DesignerActionPropertyItem("Closable", "Closable", "700", "Allow the user to close the window"));

            DesignerActionPropertyItem closeAction = new DesignerActionPropertyItem("CloseAction", "Close Action", "700", "'Close' to destroy the Window, 'Hide' to simply hide the window");
            DesignerActionPropertyItem maximizable = new DesignerActionPropertyItem("Maximizable", "Maximizable", "700", "Allow the user to maximize the window");
            DesignerActionPropertyItem modal = new DesignerActionPropertyItem("Modal", "Modal", "700", "Make the window modal and mask everything behind it when displayed");

            this.RemovePropertyItem(closeAction);
            this.RemovePropertyItem(maximizable);
            this.RemovePropertyItem(modal);

            if (this.Closable)
            {
                this.AddPropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }
            else
            {
                this.RemovePropertyItem(closeAction);
                this.AddPropertyItem(maximizable);
                this.AddPropertyItem(modal);
            }

            return base.GetSortedActionItems();
        }
Exemplo n.º 10
0
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     var items = new DesignerActionItemCollection();
     var item  = new DesignerActionPropertyItem("DataSource", "Choose Data Source");
     item.RelatedComponent = m_owner.Component;
     items.Add(item);
     return items;
 }
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     string category = System.Design.SR.GetString("MenuDesigner_DataActionGroup");
     DesignerActionPropertyItem item = new DesignerActionPropertyItem("View", System.Design.SR.GetString("WebControls_Views"), category, System.Design.SR.GetString("MenuDesigner_ViewsDescription")) {
         ShowInSourceView = false
     };
     items.Add(item);
     if (string.IsNullOrEmpty(this._parent.DataSourceID))
     {
         items.Add(new DesignerActionMethodItem(this, "EditMenuItems", System.Design.SR.GetString("MenuDesigner_EditMenuItems"), category, System.Design.SR.GetString("MenuDesigner_EditMenuItemsDescription"), true));
     }
     else
     {
         items.Add(new DesignerActionMethodItem(this, "EditBindings", System.Design.SR.GetString("MenuDesigner_EditBindings"), category, System.Design.SR.GetString("MenuDesigner_EditBindingsDescription"), true));
     }
     if (this._parent.DynamicTemplated)
     {
         items.Add(new DesignerActionMethodItem(this, "ResetDynamicTemplate", System.Design.SR.GetString("MenuDesigner_ResetDynamicTemplate"), category, System.Design.SR.GetString("MenuDesigner_ResetDynamicTemplateDescription"), true));
     }
     else
     {
         items.Add(new DesignerActionMethodItem(this, "ConvertToDynamicTemplate", System.Design.SR.GetString("MenuDesigner_ConvertToDynamicTemplate"), category, System.Design.SR.GetString("MenuDesigner_ConvertToDynamicTemplateDescription"), true));
     }
     if (this._parent.StaticTemplated)
     {
         items.Add(new DesignerActionMethodItem(this, "ResetStaticTemplate", System.Design.SR.GetString("MenuDesigner_ResetStaticTemplate"), category, System.Design.SR.GetString("MenuDesigner_ResetStaticTemplateDescription"), true));
         return items;
     }
     items.Add(new DesignerActionMethodItem(this, "ConvertToStaticTemplate", System.Design.SR.GetString("MenuDesigner_ConvertToStaticTemplate"), category, System.Design.SR.GetString("MenuDesigner_ConvertToStaticTemplateDescription"), true));
     return items;
 }
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     DesignerActionPropertyItem item = new DesignerActionPropertyItem("View", System.Design.SR.GetString("WebControls_Views"), string.Empty, System.Design.SR.GetString("WebControls_ViewsDescription")) {
         ShowInSourceView = false
     };
     items.Add(item);
     return items;
 }
Exemplo n.º 13
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;
        }
Exemplo n.º 14
0
        public override DesignerActionItemCollection GetSortedActionItems()
        {
            this.AddPropertyItem(new DesignerActionPropertyItem("HideInDesign", "Hide", "", "Hide the Ext.Net ResourceManager during Design-Time editing"));

            this.AddPropertyItem(new DesignerActionPropertyItem("Theme", "Theme", "500", "Sets the current Theme"));

            this.AddPropertyItem(new DesignerActionPropertyItem("CleanResourceUrl", "CleanResourceUrl", "500", "Specifies whether the Ext.Net ResourceManager will output 'clean' Url's when linking to Embedded Resources"));
            this.AddPropertyItem(new DesignerActionPropertyItem("QuickTips", "QuickTips", "500", "Enable QuickTips"));
            this.AddPropertyItem(new DesignerActionPropertyItem("DisableViewState", "DisableViewState", "500", "Disable ViewState from the page rendering"));
            //this.AddPropertyItem(new DesignerActionPropertyItem("SourceFormatting", "SourceFormatting", "500", "Specifies whether the scripts rendered to the page should be formatted"));

            this.AddPropertyItem(new DesignerActionPropertyItem("ScriptMode", "ScriptMode", "500", "Specifies whether the Scripts should be rendered in Release or Debug mode"));

            this.AddPropertyItem(new DesignerActionPropertyItem("ScriptAdapter", "ScriptAdapter", "500", "Gets the current script Adapter"));
            this.AddPropertyItem(new DesignerActionPropertyItem("InitScriptMode", "InitScriptMode", "500", "Render config script into the page or as separate JavaScript file"));
            //this.AddPropertyItem(new DesignerActionPropertyItem("StateProvider", "StateProvider", "500", "Specifies the state provider"));

            this.AddPropertyItem(new DesignerActionPropertyItem("RenderStyles", "RenderStyles", "500", "Determines how or if the required Styles should be rendered to the Page"));

            this.AddPropertyItem(new DesignerActionPropertyItem("RenderScripts", "RenderScripts", "500", "Determines how or if the required Scripts should be rendered to the Page"));

            DesignerActionPropertyItem resourcePath = new DesignerActionPropertyItem("ResourcePath", "ResourcePath", "500", "Gets the prefix of the Url path to the base ~/Ext.Net/ folder containing the resources files for this project");

            if (this.RenderScripts == ResourceLocationType.File || this.RenderStyles == ResourceLocationType.File)
            {
                this.AddPropertyItem(resourcePath);
            }
            else
            {
                this.RemovePropertyItem(resourcePath);
            }

            return base.GetSortedActionItems();
        }
 public override DesignerActionItemCollection GetSortedActionItems()
 {
     DesignerActionItemCollection items = new DesignerActionItemCollection();
     DesignerActionPropertyItem item = new DesignerActionPropertyItem("ViewInBrowseMode", System.Design.SR.GetString("ToolZoneDesigner_ViewInBrowseMode"), string.Empty, System.Design.SR.GetString("ToolZoneDesigner_ViewInBrowseModeDesc")) {
         ShowInSourceView = false
     };
     items.Add(item);
     return items;
 }