Beispiel #1
0
 public void Initialize(String s)
 {
     Fm = s;
     T  = new MyDataTable();
     ConstructDataTable();
     dataGridView1.Rows.Clear();
     for (int i = 0; i < T.count; i++)
     {
         dataGridView1.Rows.Add(new DataGridViewRow());
         dataGridView1.Rows[i].Cells[0].Value = i;
         dataGridView1.Rows[i].Cells[1].Value = T.Buf[i].letter + " = null";
     }
     dataGridView1.Rows[dataGridView1.NewRowIndex].Cells[0].Value = "计算结果";
     dataGridView1.Rows[dataGridView1.NewRowIndex].Cells[1].Value = Fm;
     dataGridView1.Rows[dataGridView1.NewRowIndex].ReadOnly       = true;
 }
Beispiel #2
0
 public void Initialize(String s)
 {
     Fm = s;
     T = new MyDataTable();
     ConstructDataTable();
     dataGridView1.Rows.Clear();
     for (int i = 0; i < T.count; i++)
     {
         dataGridView1.Rows.Add(new DataGridViewRow());
         dataGridView1.Rows[i].Cells[0].Value = i;
         dataGridView1.Rows[i].Cells[1].Value = T.Buf[i].letter + " = null";
     }
     dataGridView1.Rows[dataGridView1.NewRowIndex].Cells[0].Value = "计算结果";
     dataGridView1.Rows[dataGridView1.NewRowIndex].Cells[1].Value = Fm;
     dataGridView1.Rows[dataGridView1.NewRowIndex].ReadOnly = true;
 }