/// <summary> /// getInstance of TcpClient (this is a singleton class) /// </summary> /// <returns>Unique TcpClient instance</returns> public static AsyncTcpClient getInstance() { if (asyncTcpClient == null) { asyncTcpClient = new AsyncTcpClient(); } return asyncTcpClient; }
/// <summary> /// getInstance of TcpClient (this is a singleton class) /// </summary> /// <returns>Unique TcpClient instance</returns> public static AsyncTcpClient getInstance() { if (asyncTcpClient == null) { asyncTcpClient = new AsyncTcpClient(); } return(asyncTcpClient); }
//DataSets.dsModuleStructure.dtActionTypeRow row; //DataSets.dsModuleStructure.dtActionTypeDataTable dtActionType; public frmMain() { Application.ThreadException += new ThreadExceptionEventHandler(ApplicationExeptionHandlers.Application_ThreadException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ApplicationExeptionHandlers.CurrentDomain_UnhandledException); InitializeComponent(); initData(); initControls(); _tcpClient = Utils.TCP.AsyncTcpClient.getInstance(); _tcpClient.tcpClientAsyncResult += OnTcpClientResultCallback; }