Exemplo n.º 1
0
        private void MBtnDiscount_Click(object sender, EventArgs e)
        {
            Btn_Activater();
            mDashLayout.RemoveAllViews();
            mBtnDiscount.Clickable = false;
            mBtnDiscount.SetBackgroundColor(Color.ParseColor("#ff20bf22"));
            //View inflatedLayout = inflater.Inflate(Resource.Drawable.DialogUserDetails, null);
            //mDashLayout.AddView(inflatedLayout);
            CarhireFragment     carhireFragment = new CarhireFragment();
            FragmentTransaction transaction     = FragmentManager.BeginTransaction().Replace(Resource.Id.dashLayout, carhireFragment);

            transaction.Commit();
        }
Exemplo n.º 2
0
        public bool OnNavigationItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.navigation_flight:
                FlightBookFragment flightBook = new FlightBookFragment();
                transaction = this.FragmentManager.BeginTransaction().Replace(Resource.Id.fragment_container, flightBook);
                transaction.Commit();
                return(true);

            case Resource.Id.navigation_dashboard:
                DashboardFragment dashboard = new DashboardFragment();
                transaction = this.FragmentManager.BeginTransaction().Replace(Resource.Id.fragment_container, dashboard);
                transaction.Commit();
                return(true);

            case Resource.Id.navigation_car:
                CarhireFragment carhire = new CarhireFragment();
                transaction = this.FragmentManager.BeginTransaction().Replace(Resource.Id.fragment_container, carhire);
                transaction.Commit();
                return(true);
            }
            return(false);
        }