private void btnFindOrderForm_Click(object sender, EventArgs e) { FormQueryInfo form = QueryInfoDialog.GetBargainInfoDialog(); if (form != null && DialogResult.OK == form.ShowDialog()) { txtBargainNumber.Text = form.GetDataItem("合同号").ToString(); txtProvider.Text = form.GetDataItem("供货单位").ToString(); } }