Ejemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ConfigManager.initConfigManager();

            var auth = new Authenticator(LoginCallback);

            _core = new ClientCore(auth);
            SetupReactions(_core);

            _core.AboutToAuthenticate += SetupAuthErrorReactions;
            _core.AboutToAutoUpdate   += Setup;
            var launched = _core.Launch();

            if (!launched)
            {
                Close();
            }
        }