private void btnEdit_Click(object sender, EventArgs e) { this.Close(); UpdateSalaryAgreement usa = new UpdateSalaryAgreement(); usa.ShowDialog(); }