Example #1
0
 private void LoadGame(SaveableSquare[,] savedCampaign)
 {
     foreach (SaveableSquare s in savedCampaign)
     {
         Square tempSquare = new Square(AddCharacter, s.X, s.Y);
         tempSquare.Background = new SolidColorBrush(Color.FromArgb(255, 225, 225, 255));
         tempSquare.IsOpen = s.IsOpen;
         tempSquare.Items = s.Items;
         tempSquare.Token = s.Token;
         tempSquare.imagePath = s.imagePath;
         tempSquare.Margin = new Thickness(1);
         tempSquare.RedrawImage();
         GameBoard[s.X, s.Y] = tempSquare;
     }
     createGridDisplay();
 }