Пример #1
0
        private void loadComponents()
        {
            jbService = new JsonBuilderService();
            userName  = (EditText)FindViewById(Resource.Id.editFirstName);
            email     = (EditText)FindViewById(Resource.Id.editTextEmail);
            password  = (EditText)FindViewById(Resource.Id.editTextPassword);

            btnUpdateProfile        = (Button)FindViewById(Resource.Id.btnUpdateProfile);
            btnUpdateProfile.Click += async(sender, e) => {
                if (isValidLogin())
                {
                    try
                    {
                        hidenKeyBoard();
                        string url = WServiceUrl.CREATE_USER;

                        var msg = await CreateUserAsync(url);

                        PostClick(msg);
                    }
                    catch (Exception ex) {
                        VisibleProgress(Resource.Id.pbHeaderProgress, INVISIBLE);
                        Alert("Please verify your Internet Connection.");
                    }
                }
            };

            loadUser(appPreferences);
        }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Configuration);
            VisibleProgress(Resource.Id.pbHeaderProgress, VISIBLE);

            this.App = App.Instance;
            //loadXmppConnect(this);
            xmppFace = new XmppFacade();

            var toolbar = loadToolBar(Resource.String.configurations);

            toolbar.SetNavigationIcon(Resource.Drawable.back);

            jbService = new JsonBuilderService();

            loadComponents();
            loadUser(appPreferences);
        }