public void OnClick(Android.Views.View v) { string link = null; //List<LinkObject> links = _profileDrawerControllerService.GetLinkObjects(); var getInvolvedLinks = _profileDrawerControllerService.GetGetInvolvedItems(); var moreLinks = _profileDrawerControllerService.GetMoreItems(); var footerLinks = _profileDrawerControllerService.GetFooterItems(); switch (v.Id) { case Resource.Id.find_a_league: link = getInvolvedLinks[0].Url; break; case Resource.Id.volunteer: //link = "http://www.upward.org/getinvolved/volunteer"; link = getInvolvedLinks[1].Url; break; case Resource.Id.donate: //link = "http://www.upward.org/foundation"; link = getInvolvedLinks[2].Url; break; case Resource.Id.about_upward: //link = "http://www.upward.org/about"; link = moreLinks[0].Url; break; case Resource.Id.contact_us: //link = "http://www.upward.org/about/contactus"; link = moreLinks[1].Url; break; case Resource.Id.drawerPrivacyPolicy: link = footerLinks[0].Url; break; case Resource.Id.drawerTermsAndConditions: link = footerLinks[1].Url; break; case Resource.Id.drawerFanreactTechnologies: //link = footerLinks[2].Url; //break; IntentUtil.GoToLoginPage(this); return; case Resource.Id.flDrawerNonAuthenticatedHeader_AvatarContainer: IntentUtil.GoToSignup(this); return; case Resource.Id.drawerAuthenticatedHeader: var profileId = (long)v.Tag; IntentUtil.GoToProfile(this, (int)profileId); break; default: link = null; break; } if (link != null) { ViewUtil.GoToLink(this, link, true); } }
private void CreateAccount_Click(object sender, EventArgs e) { IntentUtil.GoToSignup(this); }