コード例 #1
0
ファイル: PresenterAuth.cs プロジェクト: Devxenderr/SocialTr
        public PresenterAuth(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                             Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                             IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
        {
            if (view == null || interactor == null || router == null)
            {
                throw new NullReferenceException();
            }

            _router               = router;
            _view                 = view;
            _interactor           = interactor;
            _view.Presenter       = this;
            _interactor.Presenter = this;
            _authLocaleStrings    = authLocaleStrings;

            _facebookCallLoginAction = facebookCallLoginAction;
            _googleCallLoginAction   = googleCallLoginAction;
            _vkCallLoginAction       = vkCallLoginAction;
            _okCallLoginAction       = okCallLoginAction;
            _stylesHolder            = stylesHolder;

            _view.SetConfig();
        }
コード例 #2
0
 public PresenterAuthMOCK(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                          Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                          IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
     : base(view, interactor, router, facebookCallLoginAction, googleCallLoginAction, vkCallLoginAction, okCallLoginAction, stylesHolder, authLocaleStrings)
 {
 }
コード例 #3
0
 /// <summary>
 /// Конструктор, который инициализирует форму
 /// </summary>
 public FormAuthorization(IViewAuth viewAuth)
 {
     this.ViewAuth = viewAuth;
     InitializeComponent();
 }