public override void Setup(ApplicationModulesManager moduleManager) { base.Setup(moduleManager); if (RuntimeMode) { _authentication = new Authentication(); _authentication.Attach(this); Application.CreateCustomLogonWindowControllers += application_CreateCustomLogonWindowControllers; } }