public static void Main(string[] args) { var processValidator = new ProcessValidator(); processValidator.CheckProcessExisting(); var app = new App(); var container = new IocContainer(); container.BuildContainer(); app.Resources["Container"] = container; ITrayIcon trayIcon = container.Container.Resolve <ITrayIcon>(); Program program = new Program(trayIcon); Process.Start("TEK.Updater.exe"); loginWindow = new LoginWindowView(); app.Run(loginWindow); }