Exemplo n.º 1
0
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate(Resource.Layout.Main, null);
			var fragTrans = FragmentManager.BeginTransaction().Replace(Resource.Id.nextVisit, nextView = new VisitViewFragment{Visit = Model.NextVisit, TopLabel = "Next Visit"});
			fragTrans.Replace(Resource.Id.otherVisits, otherViewFragment = new OtherVisitFragment() { Visits = Model.OtherVisits});
			fragTrans.Replace(Resource.Id.todaysVisits,todaysFragment =  new TodaysVisitsFragment(){Visits = Model.TodayVisits}).Commit();
			return view;
		}
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view      = inflater.Inflate(Resource.Layout.Main, null);
            var fragTrans = FragmentManager.BeginTransaction().Replace(Resource.Id.nextVisit, nextView = new VisitViewFragment {
                Visit = Model.NextVisit, TopLabel = "Next Visit"
            });

            fragTrans.Replace(Resource.Id.otherVisits, otherViewFragment = new OtherVisitFragment()
            {
                Visits = Model.OtherVisits
            });
            fragTrans.Replace(Resource.Id.todaysVisits, todaysFragment = new TodaysVisitsFragment()
            {
                Visits = Model.TodayVisits
            }).Commit();
            return(view);
        }
Exemplo n.º 3
0
			public ImageAdapter(TodaysVisitsFragment fragment)
			{
				frag = fragment;
			}
Exemplo n.º 4
0
 public ImageAdapter(TodaysVisitsFragment fragment)
 {
     frag = fragment;
 }