示例#1
0
 //click cell to generate form with row attributes.
 private void dgvPersonInfo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     //If a row OTHER than the header is selected.
     if (e.RowIndex != -1)
     {
         int selectedID = Int32.Parse(dgvPersonInfo.CurrentRow.Cells[0].Value.ToString());
         Handlers.OpenPersonInformationForm(selectedID);
     }
 }
示例#2
0
 //click new to generate personInformation.cs form with blank fields
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Handlers.OpenPersonInformationForm();
 }