110,539
社区成员
发帖
与我相关
我的任务
分享
int i = 2;
int j =4;
//行循环开始
for (int row = 1; row <= i; row++)
{
//列循环开始
for (int col = 1; col <= j; col++)
{
//创建控件的实例
var ButtonText = LIST[(j-1)*(row-1)+col];
}
}
int i = 2;
int j =4;
int ListIndex=0;
//行循环开始
for (int row = 1; row <= i; row++)
{
//列循环开始
for (int col = 1; col <= j; col++)
{
//创建控件的实例
var ButtonText = LIST[ListIndex++];
}
}