コード例 #1
0
        protected override void AssingViews()
        {
            styleView();
            applyTraslations();

            UITapGestureRecognizer gestureRecognizerContact = new UITapGestureRecognizer(() => presenter.OpenContactData());
            UITapGestureRecognizer gestureRecognizerHealth  = new UITapGestureRecognizer(() => presenter.OpenMedicalInfo());
            UITapGestureRecognizer gestureRecognizerCenter  = new UITapGestureRecognizer(() => presenter.OpenCenter());

            HealthDataView.AddGestureRecognizer(gestureRecognizerHealth);
            ContactDataView.AddGestureRecognizer(gestureRecognizerContact);
            CenterView.AddGestureRecognizer(gestureRecognizerCenter);

            CloseSessionButton.TouchUpInside += (sender, e) => presenter.LogoutClicked();
            LanguageButton.TouchUpInside     += (sender, e) => presenter.LanguageClicked();


            HelloLabel.Text        = "";
            CloseSessionLabel.Text = "";

            CloseSessionButton.Layer.CornerRadius = 8.0f;

            labeVersion.Text = String.Format(AppDelegate.LanguageBundle.GetLocalizedString("version"), NSBundle.MainBundle.InfoDictionary["CFBundleShortVersionString"]);
        }