private void ShowFrmMemberAddOrModify(int temp, MemberInfo memberinfo) { this.Hide(); FrmMemberAddOrModify frmAddorModify = FrmMemberAddOrModify.Single(temp, memberinfo); frmAddorModify.FormClosed += frmAddorModify_FormClosed; frmAddorModify.Show(); }
private void ShowFrmMemberAddOrModify(HandleStatus status, MemberInfo member) { this.Hide(); FrmMemberAddOrModify fmam = FrmMemberAddOrModify.Single(status, member); fmam.FormClosed += fmam_FormClosed; fmam.Show(); }
private void ShowFrmMemberOrModify(int temp, MemberInfo member) { this.Hide(); //当前窗体隐藏 //显示新增或修改窗体 FrmMemberAddOrModify fmam = FrmMemberAddOrModify.Single(temp, member); //单例模式下的new新窗体并且传递了数据,新增就没有对象传过去,修改就有 fmam.FormClosed += new FormClosedEventHandler(fmam_FormClosed); //事件 fmam.Show(); }