private void FormManagerInfo_FormClosing(object sender, FormClosingEventArgs e) { //与单例保持一致,清理静态字段_form _form = null; }
private void FormManagerInfo_FormClosing(object sender, FormClosingEventArgs e) { _form = null; }
private void FormManagerInfo_FormClosing(object sender, FormClosingEventArgs e) { //与单例保持一致 //出现这种代码的原因:Form的close()会释放当前窗体对象 _form = null; }