private void CtrlN() { NewJobWindow njWindow = new NewJobWindow(); njWindow.Owner = MainWindow.mainWindow; njWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; njWindow.Show(); }
private void btAddNewJob_Click(object sender, RoutedEventArgs e) { NewJobWindow njWindow = new NewJobWindow(); njWindow.Owner = this; njWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; njWindow.Show(); }