摘要:
WinForm 单例publicstaticChatFormnewForm=null;publicstaticChatFormGetInstance(){if(newForm==null||newForm.IsDisposed==true)//newForm.IsDisposed==true必需,否则会出现“访问已释放资源”的异常{newForm=newChatForm();}else{newForm.Activate();}returnnewForm;}//调用:ChatFormnewForm=ChatForm.GetInstance();newForm.Ipcon=Ip;newForm.S 阅读全文
posted @ 2010-07-23 22:04
deepwishly
阅读(201)
评论(0)
推荐(0)
浙公网安备 33010602011771号