/// <summary> /// 单例模式,返回单个窗体对象 /// </summary> /// <returns></returns> public static FrmOrderIn GetSingleton() { //if(frm==null || frm.IsDisposed) if (frm == null) { frm = new FrmOrderIn(); } return(frm); }
private void FrmOrderIn_FormClosing(object sender, FormClosingEventArgs e) { frm = null; }