Matt Dwen

Sorter of Shit

ARHT day 6

Been a few days since I’ve been able to work on this, but I’ve done a few hours today. I’ve added a command binding system to by ViewModelBase class, which works with RoutedCommands. I’ve set it up so that CanExecute can be bound easily to a property, so it makes buttons automatically enable/disable based on their state. Missions are validating and being inserted to the DB. I’ve decided to just use a ListBox for the...

ARHT day 5

Sounds like I’ve got more time than I expected on this project. It’s going to be at least a month until the cameras are mounted to the helicopters. I’ve got a large chunk of work to do on DIVA ASAP too, so that’ll take priority this weekend. I’d still like to get ARHT done this weekend too if possible. I’m playing with displaying validation messages based on a ListBox SelectedItem. Looks like it’ll just work,...

ARHT day 4

Not much work tonight. I’ve setup the EF model for a Mission, and built an Import view model. Got pretty much all the Mission fields linked. I’m having some weird issues where the validation errors are displayed before I do anything. I probably need to modify my error tracking on the models to see if anything has actually changed. Sounds like a good excuse to build that base class. Had an expected database issue once...

ARHT day 3

I’ve been away the last two days, so no work as been done on the project. The last day was interrupted by Monaco F1 free practice :) I now have the project all set up with Prism, and integrated with my default set of libraries, including Ninject for the DI. The plan for today is to get SQL CE 4 running with EF Code First, and get the aircraft manager in place. If this goes well (unlikely),...

ARHT day 2

I’m not going to use Caliburn Micro. It looks very nice and all, and I plan on migrating DIVA2 applications to it, but I don’t have time, patience, or ability for the learning curve at the moment. I’ll throw in a Nuget reference to Prism, and stick with what I (half) know. I’ve also had the realisation that I’ve never displayed Entity Framework models in a WPF application before, only data from REST calls. I’m...