示例#1
0
 public void Dispose()
 {
     if (Interlocked.Increment(ref _disposeCounter) != 1)
     {
         return;
     }
     Adapter.Dispose();
 }
示例#2
0
 public void Dispose()
 {
     if (Interlocked.Increment(ref _disposeCounter) != 1)
     {
         return;
     }
     try
     {
         _adapter.Dispose();
     }
     finally
     {
         GC.SuppressFinalize(this);
     }
 }
示例#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;
        }
示例#4
0
 public void Dispose()
 {
     _adapter.Dispose();
 }