Exemplo n.º 1
0
 public void Dispose()
 {
     if (Interlocked.Increment(ref _disposeCounter) != 1)
     {
         return;
     }
     Adapter.Dispose();
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     if (Interlocked.Increment(ref _disposeCounter) != 1)
     {
         return;
     }
     try
     {
         _adapter.Dispose();
     }
     finally
     {
         GC.SuppressFinalize(this);
     }
 }
Exemplo n.º 3
0
        private void PopulateDriverList()
        {
            mAdapter.Dispose();
            mAdapter = null;

            if (driverRepository == null)
            {
                driverRepository = new DriverRepository();
            }

            mDrivers = driverRepository.GetAllDrivers();

            mAdapter          = new DriverSpinnerAdapter(this, Resource.Layout.DriverJourneyListViewRow, mDrivers, mDriverSelected);
            mListView.Adapter = mAdapter;
        }
Exemplo n.º 4
0
 public void Dispose()
 {
     _adapter.Dispose();
 }