private async void Aceptar_OnClicked(object sender, EventArgs e)
        {
            ovwPopupLoad = new PopupLoad();
            await PopupNavigation.Instance.PushAsync(ovwPopupLoad);

            if (await this.cpFeeds.m_Acepta_Temino_y_condiciones(Settings.sUserNameLogin))
            {
                Settings.bSession = true;
                // if (Device.RuntimePlatform == Device.iOS)
#if __IOS__
                Application.Current.MainPage = new MainPage();
#else
                Application.Current.MainPage = new MainPage(ScreenshareIntent);
#endif

//                else
//#if __IOS__
//                Application.Current.MainPage = new MainPage();// { ToolbarItems = { new ToolbarItem { Icon = "meditoc_white.png", Priority = 3, Order = ToolbarItemOrder.Primary } } };
//#else
//                    Application.Current.MainPage = new MainPage();// { ToolbarItems = { new ToolbarItem { Icon = "meditoc_white.png", Priority = 3, Order = ToolbarItemOrder.Primary } } };
//#endif
            }
            else
            {
                await DisplayAlert("Términos y condiciones.", "Hubo un error al aceptar los términos y condiciones, reintente por favor.", "Aceptar");
            }

            await PopupNavigation.Instance.PopAllAsync();
        }
        public vwHomePage(MainPage pmainPage, Intent screenshareIntent)
        {
            ScreenshareIntent = screenshareIntent;
#endif

            oMainPage = pmainPage;
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "");
            NavigationPage.SetHasNavigationBar(this, false);
            BindingContext = _HomeViewModel = new HomeViewModel(this);

            InitFormulario();
            this.cpFeeds = DependencyService.Get <ICPFeeds>();
            //this.oCometChatService = new CometChatService(this);
            this.oInternetService = new InternetService(this);
            Settings.bClicButton  = false;
            _loginPopup           = new PopupLoad();

            var tapGestureRecognizer = new TapGestureRecognizer();
            tapGestureRecognizer.Tapped += async(s, e) =>
            {
                // handle the tap

                oMainPage.IsPresented = true;
                //Settings.COVIDFolio = "";
                await Navigation.PopAsync();
            };
            tabMenu.GestureRecognizers.Add(tapGestureRecognizer);

#if __ANDROID__
            statusBarHeigth = new Thickness(0, 40, 0, 0);
            mainMarginTop   = 168;
            Console.WriteLine("__ANDROID__ is defined");
#endif
        }
Example #3
0
        private async void OnClickSiguiente(object sender, EventArgs args)
        {
            try
            {
                ovwPopupLoad = new PopupLoad();
                await PopupNavigation.Instance.PushAsync(ovwPopupLoad);

                if (this.bInicio)
                {
                    if (this.iVista == 1)
                    {
                        this.iVista = 0;
                    }
                    else
                    {
                        this.iVista = 1;
                    }

                    this.sTextBoton = "Aceptar";
                    this.bInicio    = false;
                    InitForm();
                }
                else
                {
                    if (this.sTextBoton == "Aceptar")
                    {
                        oLoginModel                         = new LoginModel();
                        oLoginModel.sUIDCliente             = Settings.sUsuarioUID;
                        oLoginModel.bAceptoTerminoCondicion = true;
                        this.cpFeeds                        = DependencyService.Get <ICPFeeds>();
                        if (await this.cpFeeds.m_Acepta_Temino_y_condiciones(Settings.sUserNameLogin))
                        {
                            Settings.bSession = true;

#if __IOS__
                            Application.Current.MainPage = new MainPage();
#else
                            Application.Current.MainPage = new MainPage(ScreenshareIntent);
#endif
                            //if (Device.RuntimePlatform == Device.iOS)
                            //    Application.Current.MainPage = new MainPage();
                            //else
                            //    Application.Current.MainPage = new MainPage();// { ToolbarItems = { new ToolbarItem { Icon = "meditoc_white.png", Priority = 3, Order = ToolbarItemOrder.Primary } } };
                        }
                        else
                        {
                            await DisplayAlert("Términos y condiciones.", "Hubo un error al aceptar los términos y condiciones, reintente por favor.", "Aceptar");
                        }
                    }
                    else
                    {
                        InitForm();
                    }
                }

                await PopupNavigation.Instance.PopAsync();
            }
            catch { }
        }
Example #4
0
        public void InitFormulario()
        {
            var tap = new TapGestureRecognizer();

            tap.Tapped +=
                (sender, e) =>
            {
                OnClick_btnfrmTerminosCondiciones(sender, e);
            };

            txtContrasenaNueva.Placeholder = "Contraseña Nueva";

            txtContrasenaNueva.IsPassword = true;

            btnContrasenaNueva.Text = "Cambiar Contraseña";

            btnContrasenaNueva.Clicked += BtnContrasenaNuevaOnClicked;

            _loginPopup = new PopupLoad();
        }
 public CambioContrasenaViewModel(Page page)
     : base(page)
 {
     this.cpFeeds     = DependencyService.Get <ICPFeeds>();
     this._loginPopup = new PopupLoad();
 }