public ClientControlBoard(FromClientUiEvents port)
        {
            InitializeComponent();

            // 传入客户端服务实例中创建的FromWinformEvents端口的引用
            _fromClientUiPort = port;
        }
 public static FromClientUiEvents Instance()
 {
     if (instance == null)
     {
         instance = new FromClientUiEvents();
     }
     return(instance);
 }