Esempio n. 1
0
        public void SetFlagDisplay(int tabIndex)
        {
            Fragment fragment = null;

            switch (tabIndex)
            {
            case 0:
                fragment = ItemOneFragment.NewInstance(chatService); break;

            case 1:
                fragment = ItemTwoFragment.NewInstance(chatService); break;

            case 2:
                fragment = ItemThreeFragment.NewInstance(chatService); break;

            case 3:
                fragment = ItemFourFragment.NewInstance(chatService); break;

            case 4:
                fragment = ItemFiveFragment.NewInstance(chatService); break;
            }
            navigation.Menu.GetItem(tabIndex).SetChecked(true);

            if (fragment != null)
            {
                FragmentManager.BeginTransaction()
                .Replace(Resource.Id.content_frame, fragment)
                .Commit();
            }
        }
Esempio n. 2
0
        public static ItemTwoFragment NewInstance(BluetoothChatService bcs)
        {
            ItemTwoFragment fragment = new ItemTwoFragment(bcs);

            return(fragment);
        }