c# - Transistion from Winforms to WPF MVVM -
i have program @ heart fancy keyboard hook , wedge. keyboard hook portion separate library main program. in main program gather keys want monitor config file , instantiate keyboard hook. keys monitoring have tasks can perform when key pressed and/or when released. (tasks such open program, turn on scanner..etc) since project started in winforms felt idea make folder in library called controls. made dialog form user select task wanted perform. there has been need me switch winforms wpf. nothing add winform controls class library. trial , error appears doing same thing wpf user controls different story. decided easier created new wpf usercontrol project. (if possible can please leave comment how to?)
so new wpf, , decided particular library use mvvm pattern feet wet. small in have 6 subclasses of type abstracttask
. part of me itching use abstract task model. i'm not sure how yet, think model. i'll have add description string field view, shouldn't problem. since atleast 1 of tasks needs information (such runprogramtask) figure should put ?action? in "verify" correct information given. again.. should easy.
so in end have 2 questions.
- does theory comply mvvm pattern?
- should move hooks , tasks , such on new wpf project , delete old project? or should delete winforms controls out of library , imagine 1 project?
Comments
Post a Comment