コード例 #1
0
        private void FormExplorerTree_Refresh()
        {
            foreach (Client.Core.Forms.Control currentControl in EditorForm.GetAllControls())
            {
                Telerik.Web.UI.RadTreeNode controlNode = FormExplorerTree.FindNodeByValue(currentControl.ControlId.ToString());

                if (controlNode != null)
                {
                    String nodeText = currentControl.Name;

                    if ((currentControl.ReadOnly) || (!currentControl.Visible) || (currentControl.Required))
                    {
                        if (currentControl.Required)
                        {
                            nodeText = nodeText + " { Required }";
                        }

                        if (currentControl.ReadOnly)
                        {
                            nodeText = nodeText + " { Read Only }";
                        }

                        if (!currentControl.Visible)
                        {
                            nodeText = nodeText + " { Not Visible }";
                        }
                    }

                    controlNode.Text = nodeText;
                }
            }

            return;
        }