Example #1
0
        private void tlsExit_Click(object sender, EventArgs e)
        {
            if (!tlsStartSimulator.Enabled)
            {
                this._socketServer.StopSendMessage();
            }

            if (!this.tlsStartViewRealtimeData.Enabled)
            {
                this._socketClient.StopReceiveMessage();
            }

            this._socketClient = null;
            this._socketServer = null;
            this._tableTrackingPoints.Dispose();

            //GC.Collect();
            this.Close();
        }
Example #2
0
        private void tlsExit_Click(object sender, EventArgs e)
        {
            if (!tlsStartSimulator.Enabled)
            {
                this._socketServer.StopSendMessage();
            }

            if (!this.tlsStartViewRealtimeData.Enabled)
            {
                this._socketClient.StopReceiveMessage();
            }

            this._socketClient = null;
            this._socketServer = null;
            this._tableTrackingPoints.Dispose();

            //GC.Collect();
            this.Close();
        }