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