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

            RetrievePropertyValues(Controls, parentWebPart);
        }
예제 #4
0
파일: QNadv.cs 프로젝트: bebikashg/ttqn
 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);
             }
         }
     }
 }
예제 #5
0
파일: QNadv.cs 프로젝트: bebikashg/ttqn
 private void RetrievePropertyValues(ControlCollection controls, QNadv parentWebPart)
 {
     foreach (Control ctl in controls)
     {
         RetrievePropertyValue(ctl, parentWebPart);
         if (ctl.HasControls())
         {
             RetrievePropertyValues(ctl.Controls, parentWebPart);
         }
     }
 }