private void ShowSelectedItemInfo(object sender, RoutedEventArgs e) { if (ListView.SelectedItem == null) { return; } SpaceObject oldObj = ListView.SelectedItem as SpaceObject; SpaceObject newObj = oldObj.GetCopy(); OpenInfoWindow(newObj, delegate() { _universe.Remove(oldObj); _universe.Add(newObj); sky.ItemsSource = _universe; }); }