protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.SignUp); //Init Firebase auth = FirebaseAuth.GetInstance(MainActivity.app); //create local database db = new Database(); db.CreateDatabase(); dataHandler = new OfflineHandler(); //Views btnSignup = FindViewById <Button>(Resource.Id.signup_btn_register); btnLogin = FindViewById <TextView>(Resource.Id.signup_btn_login); input_email = FindViewById <EditText>(Resource.Id.signup_email); input_password = FindViewById <EditText>(Resource.Id.signup_password); input_password_reenter = FindViewById <EditText>(Resource.Id.signup_password_reeneter); activity_sign_up = FindViewById <RelativeLayout>(Resource.Id.activity_sign_up); btnLogin.SetOnClickListener(this); btnSignup.SetOnClickListener(this); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); //Init Auth InitFirebaseAuth(); //create database db = new Database(); db.CreateDatabase(); dataHandler = new OfflineHandler(); //Views btnLogin = FindViewById <Button>(Resource.Id.login_btn_login); input_email = FindViewById <EditText>(Resource.Id.login_email); input_password = FindViewById <EditText>(Resource.Id.login_password); btnSignUp = FindViewById <TextView>(Resource.Id.login_btn_sign_up); activity_main = FindViewById <RelativeLayout>(Resource.Id.activity_main); btnSignUp.SetOnClickListener(this); btnLogin.SetOnClickListener(this); }