コード例 #1
0
        private void ListItemClicked(int position)
        {
            //this way we don't load twice, but you might want to modify this a bit.
            if (position == oldPosition)
                return;

            oldPosition = position;

            Android.Support.V4.App.Fragment fragment = null;
            switch (position)
            {
                case 0:
                    fragment = PanelesSolares.NewInstance();
                    break;
                case 1:
                    fragment = TermasSolares.NewInstance();
                    break;
                case 2:
                    fragment = KitsSolares.NewInstance();
                    break;
                
            }

            SupportFragmentManager.BeginTransaction()
                .Replace(Resource.Id.content_frame, fragment)
                .Commit();
        }
コード例 #2
0
 public MainPresenter(PanelesSolares panelesSolares)
 {
 }