示例#1
0
 /// <summary>
 /// Richard Carroll
 /// Created: 3/8/19
 ///
 /// Refreshes the Grid
 /// </summary>
 private void refreshGrid()
 {
     try
     {
         _vehicles    = _guestVehicleManager.RetrieveAllGuestVehicles();
         _currentList = _vehicles;
         dgGuestVehicles.ItemsSource = null;
         dgGuestVehicles.ItemsSource = _vehicles;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Failed to Load Vehicle List: \n" + ex.Message);
     }
 }
 public void TestRetrieveAllGuestVehicles()
 {
     retrievedVehicles = guestVehicleManager.RetrieveAllGuestVehicles();
     Assert.IsNotNull(retrievedVehicles);
 }