public void GoTo(EItemsOptions option) { FragmentTransaction fmTransaction; switch (option) { case EItemsOptions.EditProfileCell: fmTransaction = _fragmentManager.BeginTransaction(); fmTransaction.Replace(Resource.Id.moreOptions_fragment_container, new EditProfileFragment()); fmTransaction.AddToBackStack(null); fmTransaction.Commit(); break; case EItemsOptions.EditContactCell: fmTransaction = _fragmentManager.BeginTransaction(); fmTransaction.Replace(Resource.Id.moreOptions_fragment_container, new EditContactFragment(), nameof(EditContactFragment)); fmTransaction.AddToBackStack(null); fmTransaction.Commit(); break; case EItemsOptions.LogoutCell: OnLogoutClick?.Invoke(); break; default: break; } }
private void LogOut_Click(object sender, EventArgs e) { LogOut.Enabled = false; OnLogoutClick?.Invoke(sender, e); }