Пример #1
0
        void LoadFragment(int id)
        {
            Android.Support.V4.App.Fragment fragment = null;
            switch (id)
            {
            case Resource.Id.bottom_menu_config:
                fragment = Menu_Config.NewInstance();
                break;

            case Resource.Id.bottom_queue:
                fragment = Queue.NewInstance();
                break;

            case Resource.Id.bottom_tablelist:
                fragment = Table_List.NewInstance();
                break;

            case Resource.Id.bottom_reservations:
                fragment = Reservations.NewInstance();
                break;

            case Resource.Id.bottom_settings:
                fragment = Settings.NewInstance();
                break;
            }

            if (fragment == null)
            {
                return;
            }

            SupportFragmentManager.BeginTransaction()
            .Replace(Resource.Id.content_frame, fragment)
            .Commit();
        }
Пример #2
0
        public static Table_List NewInstance()
        {
            var frag1 = new Table_List {
                Arguments = new Bundle()
            };

            return(frag1);
        }