Ejemplo n.º 1
0
        protected void SelectControl_SelectedIndexChanged(object sender, EventArgs e)
        {
            string controlName = SelectControl.SelectedValue;

            if (!string.IsNullOrEmpty(controlName))
            {
                ConLibControl control = ConLibControls.TryGetValue(controlName);
                if (control != null)
                {
                    phControlDetails.Visible = true;
                    Usage.Text   = control.Usage;
                    Summary.Text = control.Summary;
                    if (control.Params.Count > 0)
                    {
                        ParamList.Visible    = true;
                        ParamList.DataSource = control.Params;
                        ParamList.DataBind();
                    }
                }
            }
        }