Beispiel #1
0
        private void Login_FormClosed(object sender, FormClosedEventArgs e)
        {
            MyBaseTransaction info = new MyBaseTransaction();

            info.MyTransactioncode = Transaction_Code.cl_disconnect;
            _mysendFactory.sendJsonObject(info);
            _socketMange.stopConnection();
        }
Beispiel #2
0
        private void stop()
        {
            MyBaseTransaction transaction = new MyBaseTransaction();

            transaction.MyTransactioncode = Transaction_Code.cl_disconnect;

            isRunning = false;
            _listenFromServer.Interrupt();
            _mysendFactory.sendJsonObject(transaction);
            mysocketManage.stopConnection();
        }