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