I have a main form that loads and immediately start receiving data from a serial port every 0.5 seconds.
I then want to load a set of settings and to do this I plan on having a options button on the main form which loads a separate form with a drop down list of the different pre-set option sets.
What is the best way to get the option that has been selected back to the main form and then act upon receiving it?
With my current setup I have have a separate class which contains some global variables. When I click apply in the options form it fires the selected set name to that global variable which is then checked from the main form after the dialogue box / form closes.
I am using C# .Net 2010
It depends on complexity of operations you use.
But simple solution could be :
Hope this helps.