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