Beispiel #1
0
        public SignupView()
        {
            InitializeComponent();

            SignupPresenter presenter = new SignupPresenter(this);

            AcceptButton = buttonCreate;

            Load += (_, e) =>
            {
                GetRole?.Invoke(this, e);
                LoadComboBoxRole();
            };

            InitControls();
        }
        private void Initialize()
        {
            Common.CommonImpl.NotificationHandler.Instance.SetContext(this);
            ApplicationCore.Container.RegisterType <ISecureDataStorage, SecureStorageHandler>(this);
            ApplicationCore.Container.RegisterType <IDeviceHandler, DeviceHandler>(this);
            ApplicationCore.Container.RegisterInstance <INotificationService>(Common.CommonImpl.NotificationHandler.Instance);
            ApplicationCore.Container.RegisterSingletonType <IAnalytics, AnalyticsHandler>();
            ApplicationCore.Instance.Initialize();

            Common.CommonImpl.NotificationHandler.Instance.Register();
            ApplicationCore.Container.Resolve <IAnalytics>().Initialize();

            splashPresenter            = new SplashPresenter(this);
            urlPresenter               = new UrlPresenter(this);
            termsPresenter             = new TermsPresenter(this as IStartupRouter);
            loginPresenter             = new LoginPresenter(this);
            signupPresenter            = new SignupPresenter(this);
            profilePresenter           = new ProfilePresenter(this);
            mobilePhoneNumberPresenter = new MobilePhoneNumberPresenter(this);
            updatePresenter            = new UpdatePresenter(this);
        }