protected override async void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.RegisterItemActivity); var registerItems = await RestClient.GetRegisterItems(); _registerItemManager = new RegisterItemManager(registerItems); _registerItemManager.MoveFirst(); SetupSignalR(); _registerItemPagerAdapter = new RegisterItemPagerAdapter(SupportFragmentManager, _registerItemManager); _viewPager = FindViewById<ViewPager>(Resource.Id.registerItemPager); _viewPager.Adapter = _registerItemPagerAdapter; }
protected override async void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.RegisterItemActivity); var registerItems = await RestClient.GetRegisterItems(); _registerItemManager = new RegisterItemManager(registerItems); _registerItemManager.MoveFirst(); SetupSignalR(); _registerItemPagerAdapter = new RegisterItemPagerAdapter(SupportFragmentManager, _registerItemManager); _viewPager = FindViewById <ViewPager>(Resource.Id.registerItemPager); _viewPager.Adapter = _registerItemPagerAdapter; }