我正在尝试将文本框中的数据放入数组列表和数据网格视图中
private void button1_Click(object sender, EventArgs e)
{
processing pr = new processing();
pr.process = p.Text;
pr.arrivaltime = Int32.Parse(AT.Text);
pr.bursttime = Int32.Parse(BT.Text);
ArrayList Ar = new ArrayList();
Ar.Add(pr);
dataGridView1.DataSource = Ar;
}
private void BT_TextChanged(object sender, EventArgs e)
{
}
public class processing
{
public string process { set; get; }
public int arrivaltime { set; get; }
public int bursttime { set; get; }
}
现在的问题是我想将几个数据存储在一个数组中并显示在数据网格视图中