private void btnInsert_Click(object sender, EventArgs e) { JobForm jForm = new JobForm(profileId, workerName); jForm.Show(); jForm.updateDGW += this.updateDGVfromDb; }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (Convert.ToInt32(((DataTable)dataGridView1.DataSource).Rows[e.RowIndex]["Id"]) > 0) { RecentJob job = new RecentJob(((DataTable)dataGridView1.DataSource).Rows[e.RowIndex]); JobForm jForm = new JobForm(job, workerName); jForm.Show(); jForm.updateDGW += this.updateDGVfromDb; } }