Esempio n. 1
0
        public override void OnBindElements(View view)
        {
            LoginButton      = view.FindViewById <Button>(Resource.Id.loginButton);
            DemoButton       = view.FindViewById <Button>(Resource.Id.DemoButton);
            ServerName       = view.FindViewById <EditText>(Resource.Id.serverName);
            Username         = view.FindViewById <EditText>(Resource.Id.username);
            Password         = view.FindViewById <EditText>(Resource.Id.password);
            RememberMe       = view.FindViewById <CheckBox>(Resource.Id.rememberMe);
            LoginProgressBar = view.FindViewById <ProgressBar>(Resource.Id.LoginProgressBar);
            LoginLayout      = view.FindViewById <LinearLayout>(Resource.Id.LoginLayout);

            LoginProgressBar.Visibility = ViewStates.Invisible;
            LoginButton.Enabled         = false;

            Username.AddTextChangedListener(this);
            Password.AddTextChangedListener(this);
            Username.OnFocusChangeListener = this;
            Password.OnFocusChangeListener = this;
            LoginButton.SetOnClickListener(this);
            DemoButton.SetOnClickListener(this);
        }