Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
        }