【发布时间】:2013-01-09 17:18:58
【问题描述】:
昨天我遇到了一些问题,但我会更好地解释一下
这里是代码
private void btnAddNewEmployer_Click(object sender, EventArgs e) {
//This first code, call a Dialog where the user adds a name a another fields
using (frmEmployersManager employerManager = new frmEmployersManager()) {
employerManager.Init(true);
employerManager.ShowDialog();
}
//When they click the Save button, the dialog close, and reloads the grid
ReloadEmployerData(ctlFilter.Filter);
}
好吧,我真的不知道如何获取最近添加的名称,当它再次重新加载时在网格中被选中
有什么帮助吗?
【问题讨论】:
-
如何获取frmEmployersManager中提供的名称和信息?将公共属性添加到将返回文本框(或任何其他输入)的值的表单中,并在您离开之前将它们分配给变量 using 块。
标签: c#