private void btnEditLoan_Click(object sender, RoutedEventArgs e) { editLoanWindow window = new editLoanWindow(); if (window.ShowDialog() == true) { mainWindow = (MainWindow)Window.GetWindow(this.Parent); // Update DataGrid mainWindow.RefreshDataGrid(); } }
public void btnAddGadget_Click(object sender, RoutedEventArgs e) { Gadget_hinzufügen window = new Gadget_hinzufügen(); if (window.ShowDialog() == true) { mainWindow = (MainWindow)Window.GetWindow(this.Parent); // Update DataGrid mainWindow.RefreshDataGrid(); } }
private void filterInput_TextChanged(object sender, TextChangedEventArgs e) { mainWindow = (MainWindow)Window.GetWindow(this); mainWindow.filterGadgets(filterInput.Text); }
private void filterInput_TextChanged(object sender, TextChangedEventArgs e) { mainWindow = (MainWindow)Window.GetWindow(this); mainWindow.filterLoans(filterInput.Text); }