static void Main() { var kernel = new StandardKernel(); kernel.Load(Assembly.GetExecutingAssembly()); try { Unique unique = new Unique(); if (unique.AlreadyRunning("iim")) { return; } SplashScreen ss = new SplashScreen( "Resources/box-icon-251019.png"); ss.Show(true); IPresenter presenter = kernel.Get <IPresenter>(); App app = new App(); app.Run(); } catch (Exception x) { ILog log = kernel.Get <ILog>(); log.Write(x); } }