Esempio n. 1
0
        private void register()
        {
            Member member = new Member();

            member.email           = "*****@*****.**";
            member.password        = "******";
            member.confirmPassword = "******";
            member.firstName       = "Sirapop";
            member.lastName        = "Fungfuang";
            //member.birthDate = "12/12/1990";
            UIReturn result = RegisterController.getInstance().register(member);
        }
Esempio n. 2
0
        public void OnImageJoin(object sender, System.EventArgs args)
        {
            if (CrossConnectivity.Current.IsConnected)
            {
                var name      = mNameEntry.Text;
                var lastname  = mLastNameEntry.Text;
                var Phone     = mPhone.Text;
                var Email     = mEmailEntry.Text;
                var birthdate = mBirthdateEntry.Date.ToString("dd/MM/yyyy");
                var Password1 = mPasswordEntry.Text;
                var Password2 = mPassword2Entry.Text;

                Member member = new Member();
                member.email           = Email;
                member.password        = Password1;
                member.confirmPassword = Password2;
                member.firstName       = name;
                member.lastName        = lastname;
                member.birthDate       = birthdate;
                member.tel             = Phone;

                UIReturn uiReturn = RegisterController.getInstance().register(member);

                if (uiReturn.isSuccess)
                {
                    Navigation.PushAsync(new MainPage());
                }
                else
                {
                    DisplayAlert(App.AppicationName, uiReturn.getDescription(), "Close");
                }
            }
            else
            {
                DisplayAlert(App.AppicationName, App.NoInternet, "Close");
            }
        }