private void _quitButton_Click(object sender, EventArgs e)
        {

            //this.Hide();            
            //_controller.UpdatedList -= updateGUI;
            if (_controller != null)
                _controller.Stop();

            if (isSpecialist)
            {
                TCPController.Send(new NotifyPacket(NotifyPacket.Subject.StopTraining, client.NonNullId.ToString(),
                    Settings.GetInstance().authToken));
                this.Hide();

                DBConnect db = new DBConnect();

                int id;
                if (isSpecialist)
                    id = client.NonNullId;
                else
                {
                    id = Settings.GetInstance().CurrentUser.NonNullId;
                }

                GraphResultUI g = new GraphResultUI(db.getMeasurementsOfUser(id.ToString(), currentTraingId.ToString()));
                g.Show();
            }

            _inTraining = false;


        }