Beispiel #1
0
 private void BuildingOpen(object sender, RoutedEventArgs e)
 {
     SecondaryWindow window = new SecondaryWindow();
     window.ContentGrid.Children.Add(new BuildingView(building));
     window.Title = building.Name;
     window.Show();
 }
Beispiel #2
0
 private void UnitOpen(object sender, RoutedEventArgs e)
 {
     SecondaryWindow window = new SecondaryWindow();
     window.ContentGrid.Children.Add(new UnitView(unit));
     window.Title = unit.Name;
     window.Show();
 }