private void button_Click(object sender, RoutedEventArgs e) { simulation simulation = new simulation(); this.Visibility = Visibility.Hidden; simulation.ShowDialog(); this.Visibility = Visibility.Visible; }
private void pile_Click(object sender, RoutedEventArgs e) { simulation sim = new simulation(); sim.Show(); }