There’s a new date calculation in Farsi Library that might come in handy. The new function was added a few days ago and calculates date/time differences in a user friendly manner. Continue reading
Castle Windsor sample application now supports interface. If you have read my post on how to implement INotifyPropertyChanged interface using Castle DynamicProxy, here same technique is used in parallel with Fluent Validation framework for Silverlight. The magic behind this approach is that your models are clear as you want them to be. Let’s see in more detail how this can be done. Continue reading
When implementing IDataErrorInfo support on Windsor Silverlight Example that uses aspect-like features of Castle DynamicProxy, I came across something interesting. I think we all have written a code to fetch the properties of an object using Reflection API, but this one got me going for some time before I noticed what the problem is. Continue reading
One of the great features of Castle Windsor container is the ability to use typed-factories. Basically typed factories act like object factories that use container to create the objects for you, but additionally they let your application decouple from the container implementation. Continue reading
Creating a new project on top of existing API is always a challenge. The problem we faced the other day was how strange our legacy MembershipProvider behaved when integrated in our new project that used IoC containers. Continue reading
In previous part we saw how to implement a Repository pattern over Linq2SQL. Let’s see in more detail how we can test this. If you are not new to unit testing and mocking, feel free to skip. Continue reading
In a recent project, we were requested to create a new web application that worked on an existing data model that was created using Linq2SQL and .NET Framework 3.5 SP1. We were asked to use best practices and tools of the trade in the new application, but how about the data model? Instead of directly using L2S, the best thing seemed to be creating a Repository pattern implementation on top of L2S and use that instead. Continue reading
On my WPF course someone asked how we could move the focus to the next control on the page when the enter key is pressed on a textbox. Let’s suppose we have a data entry form which mostly is consisted of TextBox (or alike) controls. Continue reading
I’ve got a little question for you. What happens if you run the following test? Try to answer without actually running it! Note that there is no additional test setup. Continue reading
Some time ago, Krzysztof wrote how he uses IoC containers and asked how other use it. This post is the answer to how I use Castle Windsor container on the applications I develop. With the Castle Windsor 2.5 nearly out, I have created a sample application to show best practices of using an IoC containers. The thing is almost all the resources talk about IoC container usage in web applications so hopefully this post will help you on best practices of using IoC in a rich client applications. Continue reading