コード例 #1
0
 private void SetOwnerItem(Control control)
 {
     if (control == null)
     {
         return;
     }
     if (control is WSNPopupControlHost)
     {
         WSNPopupControlHost popupControl = control as WSNPopupControlHost;
         _ownerPopup             = popupControl;
         _ownerPopup._childPopup = this;
         OwnerItem = popupControl.Items[0];
         return;
     }
     if (control.Parent != null)
     {
         SetOwnerItem(control.Parent);
     }
 }
コード例 #2
0
 private void SetOwnerItem(Control control)
 {
     if (control == null)
     {
         return;
     }
     if (control is WSNPopupControlHost)
     {
         WSNPopupControlHost popupControl = control as WSNPopupControlHost;
         _ownerPopup = popupControl;
         _ownerPopup._childPopup = this;
         OwnerItem = popupControl.Items[0];
         return;
     }
     if (control.Parent != null)
     {
         SetOwnerItem(control.Parent);
     }
 }