Пример #1
0
        public static LoanFragment newInstance(int idmember)
        {
            LoanFragment f    = new LoanFragment();
            Bundle       args = new Bundle();

            args.PutInt("idmember", idmember);
            f.Arguments = args;
            return(f);
        }
Пример #2
0
        private void ListView_ItemClick(object sender, AdapterView.ItemClickEventArgs e)
        {
            Bundle bundle = new Bundle();
            FragmentTransaction fragTrans;

            fragTrans = FragmentManager.BeginTransaction();
            bundle.PutInt("idmember", listItem[e.Position].Id);
            if (sourcebtn.Equals("Apply"))
            {
                LoanFragment loan = new LoanFragment();
                loan.Arguments = bundle;
                fragTrans.Replace(Resource.Id.fragment_container, loan, "");
            }
            else if (sourcebtn.Equals("Pay"))
            {
                PaymentFragment pay = new PaymentFragment();
                pay.Arguments = bundle;
                fragTrans.Replace(Resource.Id.fragment_container, pay, "");
            }

            fragTrans.AddToBackStack(null);
            fragTrans.Commit();
        }