private void violationBT_Click(object sender, RoutedEventArgs e) { ViolationWindow win = new ViolationWindow(this); win.Owner = this; win.ShowDialog(); }