// Filters Associated Parts By Name
        private void EditedAssociatedSearchBtn_Click(object sender, RoutedEventArgs e)
        {
            src.Filter associationFilter       = new src.Filter();
            DataTable  filteredAssociatesTable = associationFilter.FilterAssociations(EditAssociatedData, EditedAssociatedSearchInput.Text);

            EditedAssociatedProdDataGrid.ItemsSource = filteredAssociatesTable.DefaultView;
        }
        // Filter Candidate Parts By Name
        private void EditedCandidateSearchBtn_Click(object sender, RoutedEventArgs e)
        {
            src.Filter candidateFilter_e         = new src.Filter();
            DataTable  filteredCandidatesTable_e = candidateFilter_e.FilterCandidates(EditCandidateData, EditedCandidateSearchInput.Text);

            EditedAvailableProdDataGrid.ItemsSource = filteredCandidatesTable_e.DefaultView;
        }
 // 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);
 }
Esempio n. 4
0
        // Filter Candidate Parts By Name
        private void AddCandidateSearchBtn_Click(object sender, RoutedEventArgs e)
        {
            src.Filter candidateFilter         = new src.Filter();
            DataTable  filteredCandidatesTable = candidateFilter.FilterCandidates(NewCandidateData, AddCandidateSearchInput.Text);

            NewAvailableProdDataGrid.ItemsSource = filteredCandidatesTable.DefaultView;
        }
Esempio n. 5
0
        // Lookup Product By Name
        private void MainProdSearchBtn_Click(object sender, RoutedEventArgs e)
        {
            src.Filter mainProdFilter = new src.Filter();
            mainProdFilter.tableCounter = mainInventory.productCount;
            DataTable prodFilterTable = mainProdFilter.FilterMainTables(productsData, MainProdSearchInput.Text);

            ProdDataGrid.ItemsSource = prodFilterTable.DefaultView;
        }
Esempio n. 6
0
        // 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);
        }
Esempio n. 8
0
        /*
         * 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);
        }