Esempio n. 1
0
        private void buttonAll_Click(object sender, EventArgs e)
        {
            List <Packet> packetList = new List <Packet>();

            packetList = SensorDataAccess.ListAll();
            displayPacketList(packetList);
        }
Esempio n. 2
0
        private void displayText(object o, EventArgs e)
        {
            // visa data för samtliga element i kön
            richTextBoxRX.Clear();
            List <Packet> packetList = new List <Packet>();

            packetList = SensorDataAccess.ListAll();

            if (packetList.Count > 0)
            {
                richTextBoxRX.AppendText("The database contains the following packets: \n");

                foreach (Packet packet in packetList)
                {
                    displayPacketContent(packet);
                }
            }
            else
            {
                richTextBoxRX.AppendText("There is nothing in the queue!!");
            }
        }