The first thing to do is to let the official refactor the code, refactoring is a very important thing, to make the code clearer, can clarify the idea of programming, although I refactoring is not very good, my main problem is that dependency and logic is not clear. Writing code later needs to focus on designing and distinguishing functions in advance.
Secondly, in the process of refactoring the code to learn the use of Mvvmlight, Mvvmlight is a convenient way to implement the MVVM framework of things, easy to use, a few lines of code to cut off the previous code more than half, the WPF program will often use Mvvmlight.
In the process of refactoring, but also try to use the factory design mode, but the conclusion is: In the absence of rich experience in the design of the premise not to use the design model, although the design pattern is good, but casually use is not suitable, first slowly.
Some of the things that are now familiar, WPF data binding, command bindings, and Staticresource,style,triggers in XAML can now be used with familiarity.
And LINQ, this is more important, the basic query LINQ can be done, the complexity of Baidu a bit OK
As for the design of code structure, the importance of abstract abstraction method and virtual virtual method are deeply realized in the process of refactoring, and also have a deeper understanding of inheriting this important property of object-oriented.
Class, this still does not understand thoroughly, is also the white school, must first consider the responsibility Division redesign class.
April Study Summary