private void NewButton_OnClick(object sender, RoutedEventArgs e) { var window = new ContractForm(); var result = window.ShowDialog(); if (result.HasValue && result.Value) { filterButton_Click(sender, null); } }
private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var model = (ContractReportModel)DataGrid.SelectedItem; if (model == null) { return; } var window = new ContractForm(model.Id); var result = window.ShowDialog(); if (result.HasValue && result.Value) { filterButton_Click(sender, null); } }