private void ResetControls() { expProcess.IsEnabled = true; TheFindVehicleEmployeeActiveNotMatchDataSet = TheEmployeeClass.FindVehicleEmployeeActiveNoMatch(); dgrVehicles.ItemsSource = TheFindVehicleEmployeeActiveNotMatchDataSet.FindVehicleEmployeeActiveNotMatch; TheEmployeeDateEntryClass.InsertIntoEmployeeDateEntry(MainWindow.TheVerifyLogonDataSet.VerifyLogon[0].EmployeeID, "New Blue Jay ERP // Update Employee Vehicle Active"); if (TheFindVehicleEmployeeActiveNotMatchDataSet.FindVehicleEmployeeActiveNotMatch.Rows.Count < 1) { expProcess.IsEnabled = false; } }
public FindVehicleEmployeeActiveNotMatchDataSet FindVehicleEmployeeActiveNoMatch() { try { aFindVehicleEmployeeActiveNotMatchDataSet = new FindVehicleEmployeeActiveNotMatchDataSet(); aFindVehicleEmployeeActiveNotMatchTableAdapter = new FindVehicleEmployeeActiveNotMatchDataSetTableAdapters.FindVehicleEmployeeActiveNotMatchTableAdapter(); aFindVehicleEmployeeActiveNotMatchTableAdapter.Fill(aFindVehicleEmployeeActiveNotMatchDataSet.FindVehicleEmployeeActiveNotMatch); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Employee Class // Find Vehicle Employee Active No Match " + Ex.Message); } return(aFindVehicleEmployeeActiveNotMatchDataSet); }