Exemplo n.º 1
0
 private void EditSelected(int rowIndex)
 {
     int id = (int)dataGridView1.Rows[rowIndex].Cells["id"].Value;
     int pid = (int)dataGridView1.Rows[rowIndex].Cells["pid"].Value;
     int tid = (int)dataGridView1.Rows[rowIndex].Cells["tid"].Value;
     string value = (string)dataGridView1.Rows[rowIndex].Cells["value"].Value;
     string name = (string)dataGridView1.Rows[rowIndex].Cells["name"].Value;
     DateTime expiration = (DateTime)dataGridView1.Rows[rowIndex].Cells["expiration"].Value;
     EditPersonTypeForm eptf = new EditPersonTypeForm(id, pid, tid, value, expiration, name);
     eptf.Show();
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     // edit
     EditPersonTypeForm eptf = new EditPersonTypeForm(Pid);
     eptf.Show();
 }