processing data received from a device
<p>I have a graphical user interface with 2 buttons (BIT and Data). When I am pressing the BIT button it send a hex data to a port where it is connected a device. The device replay with another hex. I read this hex with port.DataReceived function, display it in a textBox and check each bit from each byte and display value's bit in a textbox. This think is working ok. When I press the Data butoon I send a different hex to the same device and it replay with a defferent hex. Now I just want to display the replay without check it. I have no ideea how I can make it, because when a press the Data button send hex, receive the response from the device and ckeck each bit. I don't want to do this, I just want to display it in a hex. I will post here my code if somebody can help me.</p>

<p>I try to make 2 different function for reading the replay from the device but I think that this way isn't good. I read samething about flags and I hope that is a better way to solve my problem and I wanted to ask for help.</p>

<p>I will post my code here too.</p>
