Following on from my previous post it’s time to run up the app ( it’s not exactly a visual feast 🙂 ) and experiment a little with it. I can log in as my user ursula;
and she’s presented with “the UI” ( the graph should probably be hidden for users that are not in the viewers role but I’ve left it for now );
and then she can search for some data;
and get back a bunch of paged data;
and then navigate through it;
because she’s neither a viewer or editor that’s all she can do and the grid is read-only and the Insert button and the View button on each row of data are disabled. If I log in as veronica who’s both a user and a viewer then the view button is enabled and I can bring up the sales history chart data;
and then, finally, if I log in as eric who’s both a user and an editor then the grid becomes enabled as does the Insert button and the Save Changes button (as/when we make any changes) and so I can alter data and submit changes and so on;
and that all works out reasonably well apart from my slightly (!) user-unfriendly message which appears if I deliberately cause a concurrency violation in the back-end;
I’m not sure you’d really want to give that to a user but it’s perhaps sufficient for what I’m trying to do here.
So…with “an application” that’s largely doing what I want it to, I thought it was time to think about moving to trying to repeat the exercise that I did around the shared-code solution of the Pong game and see if I can manage a shared-code solution for this application.
Time to try to port to WPF…the structure of my solution right now is as below;
where 2 of those projects (AuthBits and ProductsMaintenance) are related to the server side bits and nothing to do with client so they shouldn’t have to change to support a WPF client (I hope). I’ll begin a new project for the WPF application itself so I can see that I’ll want WPF versions of the 4 projects Controls, Data, Security, Utilities – I suspect some of these will be more difficult than others because they (e.g.) make use of WCF proxies which I think will have to differ between WPF and Silverlight and there’s also the question of that charting control….