public static DefectImageFragment NewInstance(Defect defect)//accept objet { DefectImageFragment fragmentDefectImage = new DefectImageFragment { defect = defect }; return(fragmentDefectImage); }
private void BtnImage_Click(object sender, EventArgs e) { if (isTimelineDetailLoaded == true) { isTimelineDetailLoaded = false; fragmentTransaction = FragmentManager.BeginTransaction(); fragmentTransaction.Replace(Resource.Id.container, DefectImageFragment.NewInstance(defect)); fragmentTransaction.Commit(); } }