Inheritance: System.Windows.Forms.Form
        private void supplierid_txt_Leave(object sender, EventArgs e)
        {
            object val = OPDataGrid["SubContract", OPDataGrid.CurrentCellAddress.Y].Value;

            if (Convert.ToBoolean(val))
            {
                Operations_SupplierSearch OpsSupSearch = new Operations_SupplierSearch(supplierid_txt.Text);

                supplierid_txt.Text = OpsSupSearch.ReturnID;

                supplieradd_txt.Text = OpsSupSearch.ReturnDdsBillAddr;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumCity"] = OpsSupSearch.ReturnCity;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumZIP"] = OpsSupSearch.ReturnZip;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumState"] = OpsSupSearch.ReturnState;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumName"] = OpsSupSearch.ReturnName;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["DspBillAddr"] = OpsSupSearch.ReturnDdsBillAddr;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNum"] = OpsSupSearch.ReturnVendID;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumVendorID"] = supplierid_txt.Text;
            }
        }
        void supplierid_txt_Leave(object sender, EventArgs e)
        {
            Operations_SupplierSearch OpsSupSearch = new Operations_SupplierSearch(supplierid_txt.Text);

            supplierid_txt.Text = OpsSupSearch.ReturnID;

            supplieradd_txt.Text = OpsSupSearch.ReturnDdsBillAddr;

            UpdateLine(OPDataGrid, oomtemplatename_txt.Text, "Opr");

            OpsSupSearch.Dispose();
        }
        private void supplierid_btn_Click(object sender, EventArgs e)
        {
            Operations_SupplierSearch OpsSupSearch = new Operations_SupplierSearch();

            OpsSupSearch.ShowDialog();

            if (OpsSupSearch.DialogResult == DialogResult.OK)
            {
                supplierid_txt.Text = OpsSupSearch.ReturnID;

                supplieradd_txt.Text = OpsSupSearch.ReturnDdsBillAddr;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumCity"] = OpsSupSearch.ReturnCity;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumZIP"] = OpsSupSearch.ReturnZip;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumState"] = OpsSupSearch.ReturnState;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNumName"] = OpsSupSearch.ReturnName;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["DspBillAddr"] = OpsSupSearch.ReturnDdsBillAddr;

                EngWBDS.Tables["ECOOpr"].Rows[OPDataGrid.CurrentCellAddress.Y]["VendorNum"] = OpsSupSearch.ReturnVendID;
            }
        }