OOP advice

Molaw

New member
Joined
Nov 12, 2007
Messages
2
Programming Experience
1-3
I am using VB.Net 2005, creating a windows form program.

Ok this will be kind of long so I will apologies now. I have been self teaching VB.Net off and on for several years. One of the things I am creating (for personal use and learning only) is a program that communicates with a radio scanner through the serial port. I have a lot of the functionality and I have learned a lot so far. One of the things I need help with is making this code more in line with OOP. I have done a lot of reading and have a pretty good grasp of what OOP is and how it is implemented. The problem I am having is how to break this scanner app down into classes, functions, properties. etc…

The program is pretty simple; below I have broken it down somewhat

- I will read from the scanner
- I will edit the data
- I will write back to the scanner
- I will use virtual buttons to operate the scanner
- I will log the info from the scanner as it scans
- I will record the audio from the scanner as it scans


I know that this is a pretty simple description but maybe it is enough to give me ideas I can run with.

One other question is it possible to have the serial port datareceived sub imbedded in the new class. I have tried but could not figure it out.

Thanks a lot for the help, I have been struggling with this for awhile
 
It's not really OOPable; the interaction with the scanner will be done from a single thread accessing a single resource. You can make an object to represent the scanner, which has read and write methods that are called internally, but its not the best into to OOP i could think of
 
Back
Top