protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); mBtnSignUp = FindViewById <Button>(Resource.Id.btnSignUp); mBtnLogin = FindViewById <Button>(Resource.Id.btnLogin); progressBar = FindViewById <ProgressBar>(Resource.Id.progressBar1); txtError = FindViewById <TextView>(Resource.Id.txtError); mBtnLogin.Click += (object sender, EventArgs e) => { FragmentTransaction transaction = FragmentManager.BeginTransaction(); DialogLogin loginDialog = new DialogLogin(); loginDialog.Show(transaction, "Dialog Fragment"); loginDialog.onLoginComplete += LoginDialog_onLoginComplete; }; mBtnSignUp.Click += (object sender, EventArgs e) => { FragmentTransaction transaction = FragmentManager.BeginTransaction(); DialogSignUp signUpDialog = new DialogSignUp(); signUpDialog.Show(transaction, "Dialog Fragment"); signUpDialog.onSignUpComplete += SignUpDialog_onSignUpComplete; }; }
private void mBtnSignUp_Click(object sender, EventArgs e) { //pull up dialog FragmentTransaction transaction = FragmentManager.BeginTransaction(); DialogSignUp signUpDialog = new DialogSignUp(); signUpDialog.Show(transaction, "dialog fragment"); signUpDialog.onSignUpComplete += signUpDialog_OnSignUpComplete; }
private void MButtonSignUp_Click(object sender, System.EventArgs e) { // Pull up dialog FragmentTransaction transaction = FragmentManager.BeginTransaction(); DialogSignUp signUpDialog = new DialogSignUp(); signUpDialog.Show(transaction, "Dialog Fragment"); signUpDialog.mOnSignUpComplete += SignUpDialog_mOnSignUpComplete; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); btnSignUp = FindViewById <Button>(Resource.Id.btnSignUp); progBar = FindViewById <ProgressBar>(Resource.Id.progBar); btnSignUp.Click += (object sender, EventArgs args) => { //Pull up Dialog Sign Up FragmentTransaction transaction = FragmentManager.BeginTransaction(); DialogSignUp SignUpDialog = new DialogSignUp(); SignUpDialog.Show(transaction, "Dialog Fragment"); SignUpDialog.mOnSignUpComplete += SignUpDialog_mOnSignUpComplete; }; }