private void companyContracts_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { var form = new ContractSingle(SelectedContract()); var result = form.ShowDialog(); if (result == DialogResult.Yes || result == DialogResult.No) { UpdateTable(); DialogResult = DialogResult.OK; } }
private void newContract_Click(object sender, EventArgs e) { var form = new ContractSingle(Org); var result = form.ShowDialog(); if (result == DialogResult.Yes || result == DialogResult.No) { UpdateTable(); DialogResult = DialogResult.OK; } //DialogResult = result; }