private void butSpec_Click(object sender, EventArgs e) { using (SpecDialog frm = new SpecDialog(txtCommodityCode.Text.ToString())) { frm.ShowDialog(); txtMatSpec1.Text = frm.SpecID; txtMatSpec2.Text = frm.SpecName; } }
private void butSpec_Click(object sender, EventArgs e) { using (SpecDialog frm = new SpecDialog(txtCommodityCode.Text.ToString())) { frm.ShowDialog(); McssContent.MatSpec1 = frm.SpecID; McssContent.MatSpec2 = frm.SpecName; } SetContent(McssContent); }