protected override void OnGridControlChanged(DevExpress.XtraGrid.GridControl prevControl) { base.OnGridControlChanged(prevControl); if (GridControl != null) { ButtonsEventProvider = new ButtonsPanelInfoEventsProvider(ButtonsViewInfo, GridControl); } }
protected override void Dispose(bool disposing) { if (disposing) { if (buttonsEventProvider != null) { buttonsEventProvider.Dispose(); } buttonsEventProvider = null; if (buttonsPanel != null) { buttonsPanel.Dispose(); } } base.Dispose(disposing); }