Adding IoC resolution to the form