Пример #1
0
        protected override void BuildScriptDescriptor(ScriptComponentDescriptor descriptor)
        {
            RadioButton   radioButton   = (RadioButton)this.properties.Controls[0].FindControl("rbReleaseSelected");
            RadioButton   radioButton2  = (RadioButton)this.properties.Controls[0].FindControl("rbReleaseAll");
            PickerContent pickerContent = (PickerContent)this.properties.Controls[0].FindControl("pickerContent");

            descriptor.AddComponentProperty("PickerContent", pickerContent.ClientID, true);
            descriptor.AddElementProperty("ReleaseAllRadioButton", radioButton2.ClientID, true);
            descriptor.AddElementProperty("ReleaseSelectedRadioButton", radioButton.ClientID, true);
            base.BuildScriptDescriptor(descriptor);
        }
Пример #2
0
 private PickerContent FindPickerContentRecursive(Control control)
 {
     if (control != null)
     {
         PickerContent pickerContent = control as PickerContent;
         if (pickerContent != null)
         {
             return(pickerContent);
         }
         foreach (object obj in control.Controls)
         {
             Control control2 = (Control)obj;
             pickerContent = this.FindPickerContentRecursive(control2);
             if (pickerContent != null)
             {
                 return(pickerContent);
             }
         }
     }
     return(null);
 }