public void OnClick(View v) { switch (v.Id) { case Resource.Id.addmoney: navigationActivity.StartActivity(new Intent(navigationActivity, typeof(WebViewActivity))); break; } }
private void Invite_Click(object sender, EventArgs e) { Intent intent = new Intent(); intent.SetAction(Intent.ActionSend); intent.PutExtra(Intent.ExtraText, "http://contosocabs.com"); intent.SetType("text/plain"); navigationActivity.StartActivity(intent); }
private void Item_Click_New(object sender, int position) { if (autoSourceBox.Text.ToString() == "" || autoDestinationBox.Text.ToString() == "") { Toast.MakeText(Application.Context, "Please fill source and destination", ToastLength.Short).Show(); } else { CabEstimate mCab = mCabsEst[position]; Intent mIntent = new Intent(mActivity, typeof(ConfirmOrderActivity)); mIntent.PutExtra("source", msourceRecieved); mIntent.PutExtra("destination", dest); mIntent.PutExtra("eta", mCab.Eta); mIntent.PutExtra("provider", mCab.Provider); mIntent.PutExtra("type", mCab.Type); mIntent.PutExtra("distance", mCab.CurrentEstimate.Distance); mIntent.PutExtra("fare", mCab.CurrentEstimate.FareData.BaseFare); mIntent.PutExtra("high", mCab.CurrentEstimate.HighRange); mIntent.PutExtra("low", mCab.CurrentEstimate.LowRange); mIntent.PutExtra("time", mCab.CurrentEstimate.Time); mActivity.StartActivity(mIntent); } }