/// <summary> /// Upon clicking "Modify Existing Record," opens a Search Window and closes the Main Window /// </summary> /// <param name="sender">object containing sender information</param> /// <param name="e">EventArgs associated with button click</param> public void UxInventoryList_Click(object sender, RoutedEventArgs e) { inventoryPage = new InventoryPage(); inventoryPage.ShowDialog(); this.Close(); }