Пример #1
0
        protected override void OnResume()
        {
            base.OnResume();

            db       = DataBaseService.Instance;
            userList = db.getUserInfo();

            if (userList != null)
            {
                UserListViewAdapter adapter = new UserListViewAdapter(this, userList);
                userListView.Adapter = adapter;
            }
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.user_registration);

            submitButton        = FindViewById <Button>(Resource.Id.submitButton);
            submitButton.Click += OnSubmit;

            firstName = FindViewById <TextInputEditText>(Resource.Id.firstNameInput);
            lastName  = FindViewById <TextInputEditText>(Resource.Id.lastNameInput);
            age       = FindViewById <TextInputEditText>(Resource.Id.ageInput);

            passwordInputField = FindViewById <TextInputEditText>(Resource.Id.passwordInput);
            passwordInputField.AddTextChangedListener(this);

            userValidation = new UserValidation();

            db = DataBaseService.Instance;
        }