Timur Urazalinov
Timur Urazalinov
Refactor this class, it has too much responsibilities atm (it can open file, open file from webcam, it's factory for MainStateViewModel, it has actions for main window - isnt it...
Remove backing field and move collection initialization to ctor (like, some kind of private Init() func and then call it in ctor) https://github.com/reuke/FaceAppDesktop/blob/3508fafc6651364c2640d5cb12e2cc411e5e2d4d/ViewModels/FaceStateViewModel.cs#L61
Remove code behind here, its bad practice in WPF development: https://github.com/reuke/FaceAppDesktop/blob/3508fafc6651364c2640d5cb12e2cc411e5e2d4d/Views/MainView.xaml#L33