protected override void OnStart()
        {
            base.OnStart ();

            FragmentManager fragmentManager = FragmentManager;

            if (HaveTwoPanels) {
                ProductsList = fragmentManager.FindFragmentById<ProductsFragment> (Resource.Id.productsFragment);
                ProductsDetail = fragmentManager.FindFragmentById<ProductsDetailFragment> (Resource.Id.productsDetailFragment);

                ConnectListWithDetail ();
            } else {
                HandleListClick ();
            }
        }
        private void HandleListClick()
        {
            ProductsList.OnProductClickEvent += (Products.Model.Products.ProductEntity product) => {
                ProductsDetail = new ProductsDetailFragment();

                FragmentTransaction transaction = FragmentManager.BeginTransaction();

                transaction.SetCustomAnimations(Resource.Animation.enter_from_right, Resource.Animation.exit_to_left);
                transaction.Replace(Resource.Id.productsFragmentContainer, ProductsDetail);
                transaction.AddToBackStack(product.Name);

                transaction.Commit();

                FragmentManager.ExecutePendingTransactions();

                ProductsDetail.ShowProduct(product);
            };
        }
        private void HandleListClick()
        {
            ProductsList.OnProductClickEvent += (Products.Model.Products.ProductEntity product) => {
                ProductsDetail = new ProductsDetailFragment();

                FragmentTransaction transaction = FragmentManager.BeginTransaction();

                transaction.SetCustomAnimations(Resource.Animation.enter_from_right, Resource.Animation.exit_to_left);
                transaction.Replace(Resource.Id.productsFragmentContainer, ProductsDetail);
                transaction.AddToBackStack(product.Name);

                transaction.Commit();

                FragmentManager.ExecutePendingTransactions();

                ProductsDetail.ShowProduct(product);
            };
        }
        protected override void OnStart()
        {
            base.OnStart();

            FragmentManager fragmentManager = FragmentManager;

            if (HaveTwoPanels)
            {
                ProductsList   = fragmentManager.FindFragmentById <ProductsFragment> (Resource.Id.productsFragment);
                ProductsDetail = fragmentManager.FindFragmentById <ProductsDetailFragment> (Resource.Id.productsDetailFragment);

                ConnectListWithDetail();
            }
            else
            {
                HandleListClick();
            }
        }