private void menuAddRecordToolStripMenuItem_Click(object sender, EventArgs e) { FormAddRecord formAddRecord = new FormAddRecord(); formAddRecord.IsNew = true; formAddRecord.OwnerForm = this; formAddRecord.Show(); }
private void dataGridViewRecords_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0 && e.RowIndex < dataGridViewRecords.RowCount) { FormAddRecord formAddRecord = new FormAddRecord(); formAddRecord.OwnerForm = this; formAddRecord.IsNew = false; formAddRecord.Uid = dataGridViewRecords.Rows[e.RowIndex].Cells[0].Value.ToString(); formAddRecord.Show(); } }