public LoginPage()
 {
     InitializeComponent();
     SetActivityIndicatorState(false);
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     //InitForgotPasswordLabel();
 }
Exemple #2
0
 void Init()
 {
     BackgroundColor           = Color.Black;
     LoginIcon.HeightRequest   = 200;
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
 }
Exemple #3
0
        void InIt()
        {
            BackgroundColor = Constants.BackgroundColor;
            // Lbl_Username.TextColor = Constants.MainTextColor;
            //  Lbl_Password.TextColor = Constants.MainTextColor;
            Btn_Login.BackgroundColor = Constants.BackgroundColor;
            ActivitySpinner.IsVisible = false;
            //LoginIcon.HeightRequest = Constants.LoginIconHeight;
            Entry_Username.Completed += (s, e) => Entry_Username.Focus();
            Entry_Password.Completed += (s, e) => Entry_Password.Focus();
            //Btn_Register.Text = "Click Me!";
            //Btn_Register.Font = Font.SystemFontOfSize(NamedSize.Large);
            //Btn_Register.BorderWidth = 1;
            //Btn_Register.HorizontalOptions = LayoutOptions.Center;
            //Btn_Register.VerticalOptions = LayoutOptions.CenterAndExpand;

            //////Btn_Register.BorderWidth = 1;
            //Btn_Search.HorizontalOptions = LayoutOptions.Center;
            //Btn_Search.VerticalOptions = LayoutOptions.CenterAndExpand;
            ////Btn_Login.HorizontalOptions = LayoutOptions.Center;
            ////Btn_Login.VerticalOptions = LayoutOptions.CenterAndExpand;
            //Btn_Search.BackgroundColor = Constants.BackgroundColor;
            //Btn_Register.BackgroundColor = Constants.BackgroundColor;
            Btn_Register.BackgroundColor = Constants.BackgroundColor;
            Btn_Search.BackgroundColor   = Constants.BackgroundColor;
        }
Exemple #4
0
 // Seteamos algunas propiedades antes de mostrar la página
 void InitComponents()
 {
     // Ocultamos la barra de navegación
     NavigationPage.SetHasNavigationBar(this, false);
     // Evento del botón para iniciar sesión
     Btn_SignIn.Clicked += async(s, e) =>
     {
         await SignInProcedureAsync(s, e);
     };
     // Seteamos las propiedades de la página
     BackgroundColor            = Constants.BackgroundColor;
     Lbl_Username.TextColor     = Constants.MainTextColor;
     Lbl_Password.TextColor     = Constants.MainTextColor;
     Btn_SignIn.BackgroundColor = Color.FromHex("00549F");
     // Desactivamos el spinner de carga
     ActivitySpinner.IsVisible = false;
     // Ajustamos el tamaño del icono del login
     LoginIcon.HeightRequest = Constants.LoginIconHeight;
     // Verificamos la conexión a internet
     CheckConnectivity();
     // Cuando haya digitado el campo de usuario enfocará el de la contraseña
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     // Cuando haya digitado el campo de password hará un submit de la pagina
     Entry_Password.Completed += async(s, e) => await SignInProcedureAsync(s, e);
 }
Exemple #5
0
        void Init()
        {
            BackgroundColor              = Constants.BackgroundColor;
            Lbl_FirstName.TextColor      = Constants.MainTextColor;
            Lbl_LastName.TextColor       = Constants.MainTextColor;
            Lbl_Birthdate.TextColor      = Constants.MainTextColor;
            Lbl_Gender.TextColor         = Constants.MainTextColor;
            Lbl_Email.TextColor          = Constants.MainTextColor;
            Lbl_Password.TextColor       = Constants.MainTextColor;
            Lbl_RepeatPassword.TextColor = Constants.MainTextColor;
            ActivitySpinner.IsVisible    = false;
            LoginIcon.HeightRequest      = Constants.LoginIconHeight;
            //check for internet connection
            App.StartCheckIfInternet(Lbl_NoInternet, this);

            //after the firstname is entered, the focus should be on the lastname field
            Entry_FirstName.Completed += (s, e) => Entry_LastName.Focus();
            //after the lastname is entered, the focus should be on the birthday field
            Entry_LastName.Completed += (s, e) => DatePicker_Birthday.Focus();
            //after the birthday is entered, the focus should be on the gender field
            DatePicker_Birthday.DateSelected += (s, e) => Picker_Gender.Focus();
            //after the gender is entered, the focus should be on the email entry field
            Picker_Gender.SelectedIndexChanged += (s, e) => Entry_Email.Focus();
            //after the email is entered, the focus should be on the password entry field
            Entry_Email.Completed += (s, e) => Entry_Password.Focus();
            //after the password is entered, the focus should be on the repeat password entry field
            Entry_Password.Completed += (s, e) => Entry_RepeatPassword.Focus();
            //after the username and the password have been entered, the login function should be triggered
            Entry_RepeatPassword.Completed += (s, e) => RegisterProcedure(s, e);
        }
 public LoginPage()
 {
     InitializeComponent();
     this.BackgroundImage      = "background.jpg";
     this.Title                = "Login";
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
 }
        void Init()
        {
            ActivitySpinner.IsVisible = false;
            LogoIcon.HeightRequest    = 120;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
        }
Exemple #8
0
        void Init()
        {
            //BackgroundColor = Constants.BackgroundColor;
            //loginicon.HeightRequest = Constants.LoginIconHeight;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
            //Console.WriteLine(Entry_Username.Text);
        }
        void Init()
        {
            LoginIcon.Source = ImageSource.FromResource("AppSmartMailBox.Resources.Images.MyDilLogo.png");

            LoginIcon.HeightRequest = Constants.LoginIconHeight;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
        }
 private void InputInfo()
 {
     Entry_FirstName.Completed   += (s, e) => Entry_LastName.Focus();
     Entry_LastName.Completed    += (s, e) => EntryPhone.Focus();
     EntryPhone.Completed        += (s, e) => Entry_email.Focus();
     Entry_email.Completed       += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed    += (s, e) => Entry_PassConfirm.Focus();
     Entry_PassConfirm.Completed += (s, e) => SignUpProcedure(s, e);
 }
Exemple #11
0
        void Init()
        {
            DesignInit();
            InitCircleImage();
            ActivitySpinner.IsVisible = false;

            Entry_Username.Completed += (sender, e) => Entry_Password.Focus();
            Entry_Password.Completed += SignInProcedure;
        }
 void Init()
 {
     BackgroundColor           = Constants.BackgroundColor;
     Lbl_Login.TextColor       = Constants.GreenTextColor;
     ActivitySpinner.IsVisible = false;
     Login_Icon.HeightRequest  = Constants.LoginIconHeight;
     Btn_Reg.BackgroundColor   = Color.Green;
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => Btn_Login.Focus();
 }
 void Init()
 {
     BackgroundColor           = Constants.BackgroundColor;
     Lbl_Username.TextColor    = Constants.MainTextColor;
     Lbl_Password.TextColor    = Constants.MainTextColor;
     ActivitySpinner.IsVisible = false;
     LoginIcon.HeightRequest   = Constants.LoginIconHeight;
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
 }
 void Init()
 {
     BackgroundColor          = Constants.BackgroundColor;
     Label_Username.TextColor = Constants.TextColor;
     Label_Password.TextColor = Constants.TextColor;
     LogoIcon.HeightRequest   = Constants.LogoIconHeight;
     App.StartCheckIfInternet(Label_Internet, this);
     //-----Delegates
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => Button_Clicked_SignIn(s, e);
 }
Exemple #15
0
 void Init()
 {
     Entry_Username.Completed    += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed    += (s, e) => Entry_Password2.Focus();
     Entry_Password2.Completed   += (s, e) => Entry_Email.Focus();
     Entry_Email.Completed       += (s, e) => Entry_Location.Focus();
     Entry_Location.Completed    += (s, e) => Entry_Contact.Focus();
     Entry_Contact.Completed     += (s, e) => Entry_ProfileName.Focus();
     Entry_ProfileName.Completed += (s, e) => Entry_ProfileName.Focus();
     Entry_ProfileName.Completed += (s, e) => RegisterProcedure(s, e);
 }
        void Init()
        {
            BackgroundColor         = Constants.BackgroundColor;
            Lbl_Username.TextColor  = Constants.MainTextColor;
            Lbl_Password.TextColor  = Constants.MainTextColor;
            LoginIcon.HeightRequest = Constants.LoginIconHeight;
            Btn_Signin.TextColor    = Constants.MainTextColor;
            Btn_Register.TextColor  = Constants.MainTextColor;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
        }
Exemple #17
0
 void Init()
 {
     //BackgroundImage = "icon.png";
     //BackgroundColor = Constants.BackgroundColor;
     //Lbl_Username.TextColor = Constants.MainTextColor;
     //Lbl_Password.TextColor = Constants.MainTextColor;
     //icon.HeightRequest = Constants.iconHeight;
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => SignInProcedureAsync(s, e);
     Btn_Signin.IsEnabled      = true;
 }
Exemple #18
0
        void Init()
        {
            BackgroundColor         = Constants.BackgroundColor;
            Lbl_Username.TextColor  = Constants.MainTextColor;
            Lbl_Password.TextColor  = Constants.MainTextColor;
            Activity.IsVisible      = false;
            LoginIcon.HeightRequest = Constants.LoginIconHeight;
            App.StartCheckIfInternet(lbl_NoInt, this);

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignIn(s, e);
        }
Exemple #19
0
        void Init()
        {
            BackgroundColor = Constants.BackgroundColor;
            TranslationUsernameLabel.TextColor = Constants.MainTextColor;
            TranslationPasswordLabel.TextColor = Constants.MainTextColor;
            ActivitySpinner.IsVisible          = false;
            LoginImageIcon.HeightRequest       = Constants.LoginImageIconHeight;
            PickerLanguages.SelectedIndex      = 2;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
        }
Exemple #20
0
        void Init()
        {
            Lbl_Login.TextColor       = Constants.GreenTextColor;
            ActivitySpinner.IsVisible = false;
            Login_Icon.HeightRequest  = Constants.LoginIconHeight;

            Entry_Email.Completed    += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => Btn_Login.Focus();
            Btn_Login.BackgroundColor = Color.Orange;
            Btn_Reset.BackgroundColor = Color.Green;
            Btn_Reg.BackgroundColor   = Color.Green;
        }
Exemple #21
0
        void InitializePageDesign() // to set the elements on the Log in page to the colours set in the Constants Class
        {
            BackgroundColor           = Constants.BackgroundColour;
            Label_Username.TextColor  = Constants.MainTextColour;
            Label_Password.TextColor  = Constants.MainTextColour;
            Entry_Password.TextColor  = Constants.MainTextColour;
            Entry_Username.TextColor  = Constants.MainTextColour;
            ActivitySpinner.IsVisible = false;
            LogInIcon.HeightRequest   = Constants.LogInIconHeight;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus(); // when the user has filled in the username and the user has hit the done button on the keyboard the focus will be set to the password textbox
        }
Exemple #22
0
        async void Init()
        {
            // BackgroundColor = Constants.BackgroundColor;
            //Lbl_Username.TextColor = Constants.MainTextColor;
            //Lbl_Password.TextColor = Constants.MainTextColor;



            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(Btn_SignIn, e);
            this.IsEnabled            = true;
        }
Exemple #23
0
        void Init()
        {
            BackgroundColor           = Constants.BackgroundColor;
            Lbl_Username.TextColor    = Constants.MainTextColor;
            Lbl_Password.TextColor    = Constants.MainTextColor;
            ActivitySpinner.IsVisible = false;
            LoginIcon.HeightRequest   = Constants.LoginIconHeight;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);

            //MySqlConnection con = new MySqlConnection("server=localhost;port=3306;database=carrentaldatabase;userid=root;password=;");
        }
        public LoginPage(string image, string name, string price, int qty)
        {
            InitializeComponent();
            this.BackgroundImage = "background.jpg";
            this.Title           = "Login";
            this.getImage        = image;
            this.getName         = name;
            this.getPrice        = price;
            this.getQuantity     = qty;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
        }
        void init()
        {
            BackgroundColor           = Constants.BackgroundColor;
            Lbl_Username.TextColor    = Constants.MainTextColor;
            Lbl_Password.TextColor    = Constants.MainTextColor;
            ActivitySpinner.IsVisible = false;
            LoginIcon.HeightRequest   = Constants.LoginIconHeight;

            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => SigninProcedure(s, e);

            //new NavigationPage(new MenuIntentXaml());
            ///     new NavigationPage(new MenuIntentXaml());
        }
Exemple #26
0
        void Init()
        {
            BackgroundColor          = Constants.BackgroundColor;
            Label_Username.TextColor = Constants.TextColor;
            Label_Password.TextColor = Constants.TextColor;

            //-----Delegates
            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            //Entry_Password.Completed += (s, e) => Entry_Birthday.Focus();
            //Entry_Birthday.Completed += (s, e) => Entry_Weight.Focus();
            Entry_Weight.Completed        += (s, e) => Entry_Growth.Focus();
            Entry_Growth.Completed        += (s, e) => Entry_Insulin.Focus();
            Entry_Insulin.Completed       += (s, e) => Entry_NormalGlucose.Focus();
            Entry_NormalGlucose.Completed += (s, e) => Button_Clicked_Save(s, e);
        }
        void Init()
        {
            BackgroundColor           = Constants.BackgroundColor;
            Lbl_Username.TextColor    = Constants.MainTextColor;
            Lbl_Password.TextColor    = Constants.MainTextColor;
            ActivitySpinner.IsVisible = false;
            LoginIcon.HeightRequest   = Constants.LoginIconHeight;
            //check for internet connection
            App.StartCheckIfInternet(Lbl_NoInternet, this);

            //after the username is entered, the focus should be on the password entry field
            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            //after the username and the password have been entered, the login function should be triggered
            Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
        }
Exemple #28
0
        private void Init()
        {
            BackgroundColor            = Constants.BackgroundColor;
            LogEntries.BackgroundColor = Constants.EntriesColor;
            Lbl_Mail.TextColor         = Constants.TextColor;
            Lbl_Password.TextColor     = Constants.TextColor;

            LogoIcon.HeightRequest = Constants.BigLogoheight;
            LogoIcon.WidthRequest  = Constants.BigLogowidth;

            Entry_Mail.Completed     += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => LoginClick(s, e);

            NavigationPage.SetHasNavigationBar(this, false);
            NavigationPage.SetHasBackButton(this, false);
        }
Exemple #29
0
 public SignupPage(string image, string name, string price, int qty)
 {
     InitializeComponent();
     this.BackgroundImage = "background.jpg";
     this.Title           = "SignUp";
     this.getImage        = image;
     this.getName         = name;
     this.getPrice        = price;
     this.getQuantity     = qty;
     userDB    = new UserDB();
     userQuery = new UserQuery();
     Entry_Fullname.Completed         += (s, e) => Entry_Username.Focus();
     Entry_Username.Completed         += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed         += (s, e) => Entry_Confirm_Password.Focus();
     Entry_Confirm_Password.Completed += (s, e) => Entry_Mobile_Number.Focus();
     Entry_Mobile_Number.Completed    += (s, e) => Entry_Address.Focus();
     Entry_Address.Completed          += (s, e) => SignUpInsert(s, e);
 }
Exemple #30
0
        private void Init()
        {
            BackgroundColor          = Constants.BackgroundColor;
            Lbl_Username.TextColor   = Constants.MainTextColor;
            Lbl_Username.FontSize    = 20;
            Lbl_Password.FontSize    = 20;
            Lbl_Password.TextColor   = Constants.MainTextColor;
            Entry_Username.TextColor = Constants.MainTextColor;
            Entry_Password.TextColor = Constants.MainTextColor;
            //Btn_SignIn.BackgroundColor = Constants.ButtonColor;
            //Btn_SignIn.TextColor = Constants.ButtonTextColor;


            Icon.HeightRequest = Constants.LoginIconHeight;
            //App.StartCheckIfInternet(lbl_NoInternet, this);
            Entry_Username.Completed += (s, e) => Entry_Password.Focus();
            //Entry_Password.Completed += (s, e) => SignInProcedure(s, e);
            Entry_Password.Completed += (s, e) => Btn_SignIn.Focus();
        }