// Reset Associated Parts Table private void EditedAssociatedResetBtn_Click(object sender, RoutedEventArgs e) { src.Filter associationRestore = new src.Filter(); associationRestore.FilteredInventory = EditProdWorkingInventory; associationRestore.workingFilteredProd = EditWorkingProduct; associationRestore.ResetTable(EditAssociatedData); }
// Resets Filters on Main Tables public void TableReset(bool isProd) { src.Filter resetterFilter = new src.Filter(); resetterFilter.isProd = isProd; resetterFilter.FilteredInventory = mainInventory; if (isProd == true) { resetterFilter.ResetTable(productsData); ProdDataGrid.ItemsSource = productsData.DefaultView; } else { resetterFilter.ResetTable(partsData); PrtDataGrid.ItemsSource = partsData.DefaultView; } }
/* * Button Methods */ // Reset Candidate Parts Table private void EditedCandidateResetBtn_Click(object sender, RoutedEventArgs e) { src.Filter candidateRestore_e = new src.Filter(); candidateRestore_e.FilteredInventory = EditProdWorkingInventory; candidateRestore_e.ResetTable(EditCandidateData); }
/* * Button Methods */ // Resets Candidate Part Filters private void AddCandidateResetBtn_Click(object sender, RoutedEventArgs e) { src.Filter candidateRestore = new src.Filter(); candidateRestore.FilteredInventory = NewProdWorkingInventory; candidateRestore.ResetTable(NewCandidateData); }