private void button1_Click(object sender, EventArgs e) { AddContractor ac = new AddContractor(0); ac.ShowDialog(); LoadData(); }
private void btnEdit_Click(object sender, EventArgs e) { AddContractor ae = new AddContractor(Convert.ToInt32(this.dgvContractor.CurrentRow.Cells[0].Value)); ae.ShowDialog(); LoadData(); }