private void BtnBuild_Click(object sender, RoutedEventArgs e) { MainWindow main = Owner as MainWindow; BuildWindow build = new BuildWindow(); this.Close(); build.ShowDialog(); }
private void BtnBuild_Click(object sender, RoutedEventArgs e) { BuildWindow buildWindow = new BuildWindow { Owner = this }; buildWindow.ShowDialog(); }