public LoginForm() { try { frmLoadingApplication.Show(); this.srvLoginAttempt = SamsaraAppContext.Resolve <ILoginAttemptService>(); frmLoadingApplication.Close(); InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; } catch (Exception ex) { MessageBox.Show(ExceptionsUtil.InnerExceptionsMessages(ex)); Environment.Exit(1); } }
public LoginAttemptController(ILoginAttemptService service) : base(service) { _service = service; }