Example #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAssetInformation addAsset = new frmAssetInformation();
            DialogResult        dr       = addAsset.ShowDialog();

            BindDataContractList(1, "", "");
        }
Example #2
0
        private void dgvContracts_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmAssetInformation addAsset = new frmAssetInformation();

            addAsset.ContractId         = int.Parse(dgvContracts.CurrentRow.Cells["ContractId"].Value.ToString());
            addAsset.contractNumberFull = dgvContracts.CurrentRow.Cells["NumberFull"].Value.ToString();
            DialogResult dr = addAsset.ShowDialog();

            BindDataContractList(1, "", "");
        }