//******************************************************************* // DESCRIPTION: Runs when 'Search Items' button is clicked. // Creates an instance of SearchItemsPage, passing login-based user data. // Creates an instance of ItemsWindow, passing the SearchItemsPage as parameter. // The result is a new ItemsWindow with SearchItemsPage displayed. //******************************************************************* private void SearchItemsbutton_Click(object sender, RoutedEventArgs e) { Items_SearchItemsPage searchItemsPage = new Items_SearchItemsPage(arr); Items_Window itemsWindow = new Items_Window(searchItemsPage); itemsWindow.Show(); }
//******************************************************************* // DESCRIPTION: Runs when 'Prioritize By System' button is clicked. // Creates an instance of PrioritizeBySystemPage, passing login-based user data. // Creates an instance of ItemsWindow, passing the PrioritizeBySystemPage as parameter. // The result is a new ItemsWindow with PrioritizeBySystemPage displayed. //******************************************************************* private void PrioritizeBySysbutton_Click(object sender, RoutedEventArgs e) { Items_PrioritizeBySystemPage prioritizeBySystem = new Items_PrioritizeBySystemPage(arr); Items_Window itemsWindow = new Items_Window(prioritizeBySystem); itemsWindow.Show(); }