protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.EventDetail); Cheeseknife.Inject(this); if (!AppDataController.Instance.IsAdmin) { btnOption.Visibility = ViewStates.Gone; } content = Intent.GetStringExtra("EventDetail"); eventDetail = JsonConvert.DeserializeObject <UserLoginEventModel>(content); if (eventDetail.TimeEnd > DateTime.Now) { tvStatus.ChangeTextViewStatus(currentIsJoined); tvStatus.Click += (s, e) => { if (!currentIsJoined) { UpdateUserEvents(!currentIsJoined); } else { unjoinEventFragment.Show(SupportFragmentManager, null); } }; } Update(); }