private void clbSwaps_SelectedIndexChanged(object sender, EventArgs e) { var listBox = sender as CheckedListBox; var swap = listBox.SelectedItem as SwapResult; pbGameGrid.Image = GridDrawer.GetGridImage(_grid); GridDrawer.DrawSwap((Bitmap)pbGameGrid.Image, swap); pbEnemies.Image = new Bitmap(pbEnemies.Width, pbEnemies.Height); GridDrawer.GetGridEnemies(_grid, pbEnemies.Image); GridDrawer.GetSwapResultPicture(swap, pbEnemies.Image); //var proposed = swap.NextTurnPropositions; }