public void OpenNewSimulationWindow(object sender, RoutedEventArgs e) { NewSimulationInput newSimulationInput = new NewSimulationInput(); NewSimulationWindow newSimulationWindow = new NewSimulationWindow(newSimulationInput); if (newSimulationWindow.ShowDialog() == true) { this.CreateScene(newSimulationInput.Size); } else { Console.Write("nie"); } }
public NewSimulationWindow(NewSimulationInput newSimulationInput) { InitializeComponent(); DataContext = newSimulationInput; }