Hi, hope you guys can help me with this.

Im creating a GUI that will interface with an embedded board.
Heres what i got so far:


I got an GUI with several checkboxs that correspond to a "byte". The byte is represented by 8 checkboxes and depending what the user checks, the bit get turn on or off. I have several of this, lets call them "Start Byte, Status Byte, Parameters Byte.. etc ). When the user is done, he hits send and a byte[] buffer is created based of the setting of the form. This "message" gets sent via the serial port.

What i dont know how to do is to lets say have a "record" mode. In this mode the user will do the same; set the bytes, choose his options and hit send, however the user might have several different paramentes he wants to set, he might want to send several of these "messages" one after another, therefore creating an "scenario". So instead of sending ths stuff everytime he hits send, i need to save the message in a buffer, then when hes done save all into a file.

In the load mode, he would load this file, ( scenario ) and when he hits send , all the saved "messages" need to be sent out to the target board.

Hope im clear. Any ideas on how to approach this?