The last one was July June 1. Today is July 22, August 9. The time has passed so fast that it will take more than two months.
To optimize the application of MVP in WPF. Mvvm is a good concept. Bind commands and data ...... Awesome!
As you can see, many brothers directly call the MessageBox. Show () method in viewmodel of mvvm. I am very opposed to this writing method. This method is difficult to test in unit testing. The IDE will pop up a prompt box ...... Poor design .....
There are two purposes to make this happen today. The purpose is as follows:
1. Give an example that follows the Dependency inversion principle;
2. To a certain extent, they can be vigorously promoted in the company.
It's not easy. I'm about to get off work. I need to wash my hands.
I did not draw a picture this time, but I still use the original figure,CodeHere:/files/Zhonghua/mvvm.rar