private void InitializeBalloonImageMatrix(int rowsCount, int colsCount)
{
this.balloons = new Image[rowsCount, colsCount];
for (int i = 0; i < rowsCount; i++)
{
for (int j = 0; j < colsCount; j++)
{
this.balloons[i, j] = this.Resources.BalloonImage.Clone();
var commandToPassForButton = i + " " + j;
this.balloons[i, j]
.SetGridRow(i)
.SetGridCol(j)
.MouseDown += (s, e) =>
{
this.Window.Raise(s, new UserCommandArgs(commandToPassForButton));
};
this.balloons[i, j].AddAsChildTo(this.Window.BalloonGrid);
}
}
}