示例#1
0
        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);
            }
        }
示例#2
0
 public LoginAttemptController(ILoginAttemptService service) : base(service)
 {
     _service = service;
 }