private void butCustomer_Click(object sender, EventArgs e) { using (CustomerDailog frm = new CustomerDailog()) { frm.ShowDialog(); txtCustID.Text = frm.CustId; txtCustomerName.Text = frm.CustName; } }
private void butCustomer_Click(object sender, EventArgs e) { using (CustomerDailog frm = new CustomerDailog()) { frm.ShowDialog(); HeadContent.CustID = frm.CustId; HeadContent.CustomerName = frm.CustName; } SetHeaderContent(HeadContent); }