<pre lang="c#">
private void DisplayData() { fileList = GeneralFunc.GetAllFile(); var checkBoxes = new CheckBox[0]; for (int i = 0; i < fileList.Count(); i++) { var checkBox = new CheckBox(this); checkBox.Text = fileList[i].ST_filename; checkBox.Id = i; checkBox.LayoutParameters = new ViewGroup.LayoutParams(LinearLayout.LayoutParams.WrapContent, LinearLayout.LayoutParams.WrapContent); linearLayoutClear.AddView(checkBox); Array.Resize(ref checkBoxes, i + 1); checkBoxes[i] = checkBox; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)