protected override void Dispose(bool disposing)
        {
            _onGetCell          = null;
            _onRowsInSection    = null;
            _onNumberOfSections = null;

            base.Dispose(disposing);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GridDataSource"/> class.
 /// </summary>
 /// <param name="onGetCell">The on get cell.</param>
 /// <param name="onRowsInSection">The on rows in section.</param>
 /// <param name="onItemSelected">The on item selected.</param>
 public GridDataSource(OnGetCell onGetCell,
                       OnRowsInSection onRowsInSection,
                       OnItemSelected onItemSelected,
                       OnNumberOfSections onNumberOfSections,
                       OnGetViewForSupplementaryElement onGetViewForSupplementaryElement)
 {
     _onGetCell          = onGetCell;
     _onRowsInSection    = onRowsInSection;
     _onItemSelected     = onItemSelected;
     _onNumberOfSections = onNumberOfSections;
     _onGetViewForSupplementaryElement = onGetViewForSupplementaryElement;
 }
 public FastCollectionDataSource(OnGetCell onGetCell, OnRowsInSection onRowsInSection, OnNumberOfSections onNumberOfSections)
 {
     _onGetCell          = onGetCell;
     _onRowsInSection    = onRowsInSection;
     _onNumberOfSections = onNumberOfSections;
 }