/// <summary> 同屏服务端初始化 </summary> private RemoteViewService() { connectCallBack = new AsyncCallback(AcceptTcpClient); sessionList = new List <VncServerSession>(); //初始化白板 whiteBoard = WhiteBoardForm.GetWhiteBoardForm(); }
public static WhiteBoardForm GetWhiteBoardForm() { if (_singleton == null) { lock (SyncRoot) { if (_singleton == null) { _singleton = new WhiteBoardForm(); } } } return(_singleton); }