private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); UnityConfiguration.RegisterServices(UnityContainer); var mainForm = UnityContainer.Resolve <IMainView>(); Application.Run(mainForm as Form); }