I recently discovered the Windows Presentation Foundation (WPF) so this is a very new framework for me. I also have went over multiple tutorials on implementing a MVVM architecture but I am still not sure if this is the right approach for the task at hand because it is a lot more complex than all the examples that I have looked over.
What my program needs to accomplish:
The program will scan all the serial ports currently connected to the laptop and add all devices that are lasers produced by the company (this is determined by the firmware ID) to a selection combobox. The user will then choose a com-port/device and press a button to connect to it.
This will trigger the creation of a new window(view) and a new laser object(model) corresponding to the device that the user chose. Depending on the device that was picked, the window should contain the necessary fields to display the different sensors (e.g. power, current, temperature) and drivers that the laser has. There are about 10 different devices that the UI should be able to monitor and display the corresponding readings. Therefore, each type of device should have a corresponding view.
So first of all, would the MVVM architecture be the right approach?
If so, how would you implement such a design? Can you have an abstract base view class which contains all the fields that are necessary for all the devices and then concrete subclass that inherit from the base class?
Thank you in advance for your time!