Ejemplo n.º 1
0
 private void RetrievePropertyValues(ControlCollection controls, QNadv parentWebPart)
 {
     foreach (Control ctl in controls)
     {
         RetrievePropertyValue(ctl, parentWebPart);
         if (ctl.HasControls())
         {
             RetrievePropertyValues(ctl.Controls, parentWebPart);
         }
     }
 }
Ejemplo n.º 2
0
 private void RetrievePropertyValue(Control ctl, QNadv parentWebPart)
 {
     if (ctl is DropDownList)
     {
         if (FieldsName.NewsCategory.FieldValuesDefault.QCID.Equals(ctl.ID))
         {
             DropDownList drp = (DropDownList)ctl;
             if (drp.SelectedItem.Value.Trim() != "")
             {
                 parentWebPart.QCID = Convert.ToInt32(drp.SelectedValue);
             }
         }
     }
 }
Ejemplo n.º 3
0
        public override void ApplyChanges()
        {
            QNadv parentWebPart = (QNadv)this.ParentToolPane.SelectedWebPart;

            RetrievePropertyValues(Controls, parentWebPart);
        }
Ejemplo n.º 4
0
 private void RetrievePropertyValue(Control ctl, QNadv parentWebPart)
 {
     if (ctl is DropDownList)
     {
         if (FieldsName.NewsCategory.FieldValuesDefault.QCID.Equals(ctl.ID))
         {
             DropDownList drp = (DropDownList)ctl;
             if (drp.SelectedItem.Value.Trim() != "")
             {
                 parentWebPart.QCID = Convert.ToInt32(drp.SelectedValue);
             }
         }
     }
 }
Ejemplo n.º 5
0
 private void RetrievePropertyValues(ControlCollection controls, QNadv parentWebPart)
 {
     foreach (Control ctl in controls)
     {
         RetrievePropertyValue(ctl, parentWebPart);
         if (ctl.HasControls())
         {
             RetrievePropertyValues(ctl.Controls, parentWebPart);
         }
     }
 }