Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     if(disposing)
     {
         if(_dropDown != null)
         {
             _dropDown.Closed -= dropDown_Closed;
             _dropDown.Dispose();
             _dropDown = null;
         }
     }
     base.Dispose(disposing);
 }
Beispiel #2
0
 protected override void OnListBoxAttached()
 {
     base.OnListBoxAttached();
     if(_enableExtender)
     {
         _extender = new SubjectColumnExtender(this);
         Extender = new Popup(_extender);
     }
 }
Beispiel #3
0
 protected override void OnListBoxAttached()
 {
     base.OnListBoxAttached();
     _extender = new DateColumnExtender(this);
     Extender  = new Popup(_extender);
 }
Beispiel #4
0
 protected override void OnListBoxAttached()
 {
     base.OnListBoxAttached();
     _extender = new HashColumnExtender(this);
     Extender = new Popup(_extender);
 }
Beispiel #5
0
 private void SetOwnerItem(Control control)
 {
     if(control == null)
     {
         return;
     }
     Popup popupControl = control as Popup;
     if(popupControl != null)
     {
         _ownerPopup = popupControl;
         _ownerPopup._childPopup = this;
         OwnerItem = popupControl.Items[0];
         return;
     }
     else if(_ownerControl == null)
     {
         _ownerControl = control;
     }
     if(control.Parent != null)
     {
         SetOwnerItem(control.Parent);
     }
 }