public SharpMailApp() { this.ShutdownMode = ShutdownMode.OnExplicitShutdown; var smm = new SharpMailMain(); smm.Create(); }