protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.LogIn); _email = FindViewById <EditText>(Resource.Id.EmailInput); _password = FindViewById <EditText>(Resource.Id.PasswordInput); _logInBtn = FindViewById <Button>(Resource.Id.MyButton); _logInErrorMsg = FindViewById <TextView>(Resource.Id.LogInErrorMsg); _rememberChkBox = FindViewById <CheckBox>(Resource.Id.rememberMeChkBox); _presenter = new LogInPresenter(this, ModelFactory.Instance.CreateLogInModel()); _progressDialog = new ProgressDialog(this); _progressDialog.SetMessage("Logger ind..."); ISharedPreferences settings = Application.Context.GetSharedPreferences("TCInfo", FileCreationMode.Private); string email = settings.GetString(GetString(Resource.String.login_email), String.Empty); string password = settings.GetString(GetString(Resource.String.login_password), String.Empty); if (email != String.Empty || password != String.Empty) { _email.Text = email; _password.Text = password; _rememberChkBox.Checked = true; } _logInBtn.Click += OnLogInBtnClicked; }
public mov4eLogin() { InitializeComponent(); textBoxPassword.PasswordChar = '*'; UserName = null; Password = null; hiddenPass = true; _logInPresenter = new LogInPresenter(this); ShowLoginOnly(); }
public void SetPresenter(ILogInPresenter presenter) { _presenter = presenter; }