private void updateBtn_Click(object sender, RoutedEventArgs e) { UpdateWindow updateWindow = new UpdateWindow(CurrentTable); if (updateWindow.ShowDialog() == true) { CurrentTable.Update(updateWindow.ResultDB); RefreshGrid(); } }