https://docs.google.com/leaf?id=0B7jSfuxfxwTLMmE1MjY4NTQtZDViOC00NjM2LTkyM2UtYTgwNmE0NjFkZGE4&hl=en
Installment number 5 is linked above. I kept true to most of my promises from my last post, I missed on adding more tests. I couldn't think of many practical tests to write. In the past I'd written full repository classes and so there was much to test. In this project I just have very general access methods for the data layer and the many to many was the most complex.
I resolved the strange behaviour issues. I had the wrong type in one of my Domain Entities and it was causing the joining table to not be populated, also I wasn't using transactions. If it had been before I would have gotten a better error message and solved it earlier. To get around this, I made methods in the SQLite engine class that made adding, updating and deleting objects a little quicker and easier and already handles the transactions.
My login screen has been fixed. There is now a binding for the selected reviewer so that it can pass it off to the main screen when it loads.
And lastly, the part I didn't think I would be able to pull off successfully. After many hours of trying to bind a Page to a Frame on my Main window I finally found this:
http://stackoverflow.com/questions/2700796/can-you-use-data-binding-with-the-content-property-of-a-wpf-frame
Solved the issue perfectly. I probably had it looking close to this at one point, but a mistake I had made in my command binding for this class was stopping me from getting my commands to fire at all.
Right now the button to add a new reviewer just fires a "Hello World" page. So next step is to add functionality so that the page is actually a page to add new reviewers. I may also need to spice up my button image. The generic plus sign I hand crafted need to be a bit better. Then I will be able to begin adding the real functionality.
Cheers,
Alex.
Installment number 5 is linked above. I kept true to most of my promises from my last post, I missed on adding more tests. I couldn't think of many practical tests to write. In the past I'd written full repository classes and so there was much to test. In this project I just have very general access methods for the data layer and the many to many was the most complex.
I resolved the strange behaviour issues. I had the wrong type in one of my Domain Entities and it was causing the joining table to not be populated, also I wasn't using transactions. If it had been before I would have gotten a better error message and solved it earlier. To get around this, I made methods in the SQLite engine class that made adding, updating and deleting objects a little quicker and easier and already handles the transactions.
My login screen has been fixed. There is now a binding for the selected reviewer so that it can pass it off to the main screen when it loads.
And lastly, the part I didn't think I would be able to pull off successfully. After many hours of trying to bind a Page to a Frame on my Main window I finally found this:
http://stackoverflow.com/questions/2700796/can-you-use-data-binding-with-the-content-property-of-a-wpf-frame
Solved the issue perfectly. I probably had it looking close to this at one point, but a mistake I had made in my command binding for this class was stopping me from getting my commands to fire at all.
Right now the button to add a new reviewer just fires a "Hello World" page. So next step is to add functionality so that the page is actually a page to add new reviewers. I may also need to spice up my button image. The generic plus sign I hand crafted need to be a bit better. Then I will be able to begin adding the real functionality.
Cheers,
Alex.
Comments
Post a Comment