I am making an attempt to design a Windows application in c# that communicates through a serial port. The project will have a connection select screen, a main form with a menu bar and multiple dialogs connected to each menu item. The flow of the application would look like this:
The connection select dialog will be shown on the MainForm_Load event and capture the serial port name.
When a menu items is selected, the associated command will be sent through the serial port and the dialog will show the response data.
I am having trouble with the basic c# concepts coming from c++.
How can I create just one serial class that can share data between all the dialogs?
How can I access the serial read response from my dialog and display that data in a text field or a more meaningful way?
When I draw this up, it appears simple, but I do not know how to access data from the serial port to display in each dialog.