Exemplo n.º 1
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();
 }
Exemplo n.º 2
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();
 }