Thanks to monxalo's suggestion to using extension methods support in the .NET 3.5 we can design a more elegant solution.
I just created a simple class named FormExtensions in my UI namespace with the following code:
public static class FormExtensionNothing too complex here. So in our client code where we would normally load another form we could now code something like the following:
public static DialogResult ShowDialog(this Form owner, Form form)
form.Owner = owner;
private void OnButtonClick(object sender, EventArgs e)This assumes the FormExtensions class is in the same namespace as the UI layer. If not you'd have to fully qualify the extension class. I recomend putting it in the same namespace as the UI though.