Example #1
0
        public override void BreakLinksToControl(bool unwireEventsOnly)
        {
            if (DropDownControl != null)
            {
                DropDownControl.ValueChanged -= ExtendedEditValueChangedHandler;
            }

            if (_ListBoxTemplate != null)
            {
                _ListBoxTemplate.Dispose();
                _ListBoxTemplate = null;
            }

            base.BreakLinksToControl(unwireEventsOnly);
        }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (_ListBoxTemplate != null)
             {
                 _ListBoxTemplate.Dispose();
                 _ListBoxTemplate = null;
             }
             if (DropDownControl != null)
             {
                 DropDownControl.Dispose();
                 DropDownControl = null;
             }
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }