Ejemplo n.º 1
0
        private void StartApplication_Load(object sender, EventArgs e)
        {
            IAuthorizer authorizer = new Authorizer();
            LoginProviderWinForm loginProvider = new LoginProviderWinForm(authorizer);

            AuthorizationResult = loginProvider.Login();
            if (AuthorizationResult.Authorized)
            {
                PrepareApplication();
            }
            else
            {
                Application.Exit();
            }
        }
Ejemplo n.º 2
0
        private void StartApplication_Load(object sender, EventArgs e)
        {
            IAuthorizer          authorizer    = new Authorizer();
            LoginProviderWinForm loginProvider = new LoginProviderWinForm(authorizer);

            AuthorizationResult = loginProvider.Login();
            if (AuthorizationResult.Authorized)
            {
                PrepareApplication();
            }
            else
            {
                Application.Exit();
            }
        }