private void UpdateConnectedUsersList()
        {
            ListPacket p = new ListPacket("user_sessions", Settings.GetInstance().authToken);
            TCPController.Send(p.ToString());
            users = new List<User>();

        }
        public SelectMeasurementScreen()
        {
            InitializeComponent();

            TCPController.OnPacketReceived += handleIncomingPackets;
            ListPacket p = new ListPacket("users", Settings.GetInstance().authToken);
            TCPController.Send(p.ToString());

            UpdateConnectedUsersList();
        }
예제 #3
0
        public TrainingScreen(User client)
        {
            this.client = client;
            _spController = new Specialist_Controller();
            _spController.UpdatedList += UpdateGUI;

            InitializeComponent();
            isSpecialist = true;
            SubscribePacket subbie = new SubscribePacket(client.Username, true, Settings.GetInstance().authToken);

            ListPacket p = new ListPacket("connected_clients", Settings.GetInstance().authToken);
            TCPController.OnPacketReceived += HandleIncomingPackets;
            TCPController.Send(p.ToString());

            TCPController.Send(subbie.ToString());

            // updateGraph();
        }