private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (dgvContractors.SelectedRows.Count == 1)
     {
         var createForm = new CreateForm(this, (Contractor)dgvContractors.SelectedRows[0].DataBoundItem);
         createForm.Show();
     }
 }
        private void btnCreate_Click(object sender, EventArgs e)
        {
            var createForm = new CreateForm(this);

            createForm.Show();
        }