Exemple #1
0
 private void RetrievePropertyValues(ControlCollection controls, QNadv parentWebPart)
 {
     foreach (Control ctl in controls)
     {
         RetrievePropertyValue(ctl, parentWebPart);
         if (ctl.HasControls())
         {
             RetrievePropertyValues(ctl.Controls, parentWebPart);
         }
     }
 }
Exemple #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);
             }
         }
     }
 }
Exemple #3
0
        public override void ApplyChanges()
        {
            QNadv parentWebPart = (QNadv)this.ParentToolPane.SelectedWebPart;

            RetrievePropertyValues(Controls, parentWebPart);
        }
Exemple #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);
             }
         }
     }
 }
Exemple #5
0
 private void RetrievePropertyValues(ControlCollection controls, QNadv parentWebPart)
 {
     foreach (Control ctl in controls)
     {
         RetrievePropertyValue(ctl, parentWebPart);
         if (ctl.HasControls())
         {
             RetrievePropertyValues(ctl.Controls, parentWebPart);
         }
     }
 }