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

        }
        public CreateConnectionScreen()
        {
            InitializeComponent();
            var p = new ListPacket("connected_clients", Settings.GetInstance().authToken);
            TCPController.OnPacketReceived += ReceiveHonoredGuests;
            TCPController.Send(p);

        }
        public SelectMeasurementScreen()
        {
            InitializeComponent();

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

            UpdateConnectedUsersList();
        }
Ejemplo n.º 4
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();
        }