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

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