Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        //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;
        }