예제 #1
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new CustomerDetailsFrag(), Resources.GetString(Resource.String.title_customer));
            adapter.AddFragment(new PaymentsFrag(), Resources.GetString(Resource.String.title_make_payment));
            viewPager.Adapter = adapter;
        }
예제 #2
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            adapter = new TabAdapter(SupportFragmentManager);
            adapter.AddFragment(new Fragments.MainFragment(), "Online");
            adapter.AddFragment(new Fragments.OfflineFragment(), "Offline");

            viewPager.Adapter = adapter;
        }
        public void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new StopFragment(), "Walks");
            adapter.AddFragment(new MapsFragment(), "Map");

            viewPager.Adapter = adapter;
        }
예제 #4
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Members(), "Members");
            adapter.AddFragment(new TaskFragment(), "Task");

            viewPager.Adapter = adapter;
        }
예제 #5
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Finished_Purchases(), Resources.GetString(Resource.String.tab_finished_purchases));
            adapter.AddFragment(new Pending_Purchases(), Resources.GetString(Resource.String.tab_pending_purchases));

            viewPager.Adapter = adapter;
        }
예제 #6
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new RecordMedicamentoFragment(), "Medicamento");
            adapter.AddFragment(new RecordRotacionFragment(), "Rotación");

            viewPager.Adapter = adapter;
        }
예제 #7
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragment1(), "Especialidades");
            adapter.AddFragment(new Fragment2(), "Cita");
            adapter.AddFragment(new Fragment4(), "Recordatorio");

            viewPager.Adapter = adapter;
        }
예제 #8
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new DashboardFragment(), "Dashboard");
            adapter.AddFragment(new DashBillsFragment(), "Bills");
            adapter.AddFragment(new DashBookingsFragment(), "Bookings");

            viewPager.Adapter = adapter;
        }
예제 #9
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new ViewGoalsFragment(), "Goals");
            adapter.AddFragment(new ViewProjectsFragment(), "Projects");
            adapter.AddFragment(new ViewShoppingListsFragment(), "Meetings");

            viewPager.Adapter = adapter;
        }
예제 #10
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragment1(), "Fragment 1");
            adapter.AddFragment(new Fragment2(), "Fragment 2");
            adapter.AddFragment(new Fragment3(), "Fragment 3");

            viewPager.Adapter = adapter;
        }
예제 #11
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragment1(), "Абонати");
            adapter.AddFragment(new Fragment2(), "Добави абонат");
            adapter.AddFragment(new Fragment3(), "Изпраит сигнал");

            viewPager.Adapter = adapter;
        }
예제 #12
0
        private void SetupViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragment1(), "Home");
            adapter.AddFragment(new Fragment2(), "LogIn");
            adapter.AddFragment(new Fragment3(), "About");

            viewPager.Adapter = adapter;
        }
예제 #13
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            users   = new UserFragment();
            rewards = new RewardFragment();
            adapter.AddFragment(users, "Users");
            adapter.AddFragment(rewards, "Rewards");

            viewPager.Adapter = adapter;
        }
예제 #14
0
        public void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new HelpFragment(), "Help");

            viewPager.Adapter = adapter;
        }
예제 #15
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new TrailFragment(), "Trails");

            viewPager.Adapter = adapter;
        }
예제 #16
0
        public void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new StopFragment(), "Stops");
            adapter.AddFragment(new MapsFragment(), "Map");

            Bundle stopArgs = new Bundle();
            Bundle mapArgs  = new Bundle();

            stopArgs.PutString("Trail ID", trailId);
            mapArgs.PutString("Trail ID", trailId);

            var stopFragment = adapter.GetItem(0);
            var mapFragment  = adapter.GetItem(1);

            stopFragment.Arguments = stopArgs;
            mapFragment.Arguments  = mapArgs;

            viewPager.Adapter = adapter;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.reservas_Nueva);
            db = new SQLite.SQLiteConnection(sqlPath);
            // detallesVenta = new List<MDetalleVenta>();
            trabajador = JsonConvert.DeserializeObject <MTrabajador>(Intent.GetStringExtra("trabajador"));
            reserva    = JsonConvert.DeserializeObject <MReserva>(Intent.GetStringExtra("reserva"));

            //trabajador = JsonConvert.DeserializeObject<MTrabajador>(Intent.GetStringExtra("trabajador"));
            //Configuracion = db.Table<MConfig>().First();
            Android.Support.V7.Widget.Toolbar toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolBarNuevaReserva);
            SetSupportActionBar(toolbar);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            SupportActionBar.Title = "Editar Reserva";
            tabs      = FindViewById <TabLayout>(Resource.Id.tabsNuevaReserva);
            viewPager = FindViewById <ViewPager>(Resource.Id.viewpagerNuevaReserva);
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragments.NuevaReserva_Cliente(), "CLIENTE");
            adapter.AddFragment(new Fragments.NuevaReserva_Servicio(), "SERVICIO");
            adapter.AddFragment(new Fragments.NuevaReserva_Detalle(), "DETALLES");
            adapter.AddFragment(new Fragments.NuevaReserva_Resumen()
            {
                Trabajador = trabajador
            }, "RESUMEN");
            viewPager.Adapter = adapter;

            tabs.SetupWithViewPager(viewPager);
            Window.SetSoftInputMode(SoftInput.AdjustPan);

            var servicio = db.Table <MServicio1>().First(x => x.Id == reserva.IdServicio);
            var cliente  = db.Table <MCliente>().First(x => x.Id == reserva.IdCliente);

            establecerCliente(cliente);
            establecerServicio(servicio);
            establecerReserva(reserva);
        }
        private void SetUpViewPager(ViewPager viewPager)
        {
            adapter = new TabAdapter(SupportFragmentManager);
            try
            {
                var websiteGroup = Config.GetWebsite(currentWebsiteKey) as WebsiteGroup;
                foreach (var child in websiteGroup.ChildWebsites)
                {
                    MyLog.Log(this, $"Adding OverviewFragment {child.ChildName}...");
                    adapter.AddFragment(new Fragments.OverviewFragment(child.HiddenKey), child.ChildName);
                    MyLog.Log(this, $"Adding OverviewFragment {child.ChildName}...Done");
                }
            }
            catch (System.Exception)
            {
                MyLog.Log(this, $"Adding OverviewFragment as single child --website key {currentWebsiteKey}...");
                adapter.AddFragment(new Fragments.OverviewFragment(currentWebsiteKey), Config.GetWebsite(currentWebsiteKey).Name);
                tabs.Visibility = ViewStates.Gone;
                MyLog.Log(this, $"Adding OverviewFragment as single child --website key {currentWebsiteKey}...Done");
            }

            viewPager.Adapter = adapter;
        }
예제 #19
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            veiws = 0;
            adapter.AddFragment(new ax_Info(), "Info");
            if (movieProvider[movieSelectedID] == 3)
            {
                if (!done)
                {
                    adapter.AddFragment(new ax_Links(), "Links");
                }
                else
                {
                    veiws = 1;

                    for (int i = 0; i < seasons; i++)
                    {
                        adapter.AddFragment(new ax_Links(), "" + (i + 1));
                    }
                }
            }
            else
            {
                if (movieProvider[movieSelectedID] == 0)
                {
                    adapter.AddFragment(new ax_Links(), "Dub");
                    adapter.AddFragment(new ax_Links(), "Sub");
                }
                else
                {
                    if (movieProvider[movieSelectedID] == 4)
                    {
                        adapter.AddFragment(new ax_Links(), "Episodes");
                        adapter.AddFragment(new ax_Links(), "Links");
                    }
                    else
                    {
                        adapter.AddFragment(new ax_Links(), "Links");
                    }
                }
            }

            // adapter.Fragments[1].set = "currentMain";

            viewPager.Adapter = adapter;
        }
예제 #20
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new Fragment1(), "PUP");
            adapter.AddFragment(new Fragment2(), "Imaging");
            adapter.AddFragment(new Fragment1(), "RCO");
            adapter.AddFragment(new Fragment1(), "PKG");
            adapter.AddFragment(new Fragment1(), "Media");
            adapter.AddFragment(new Fragment1(), "Licensing");
            adapter.AddFragment(new Fragment1(), "Sava Data");
            adapter.AddFragment(new Fragment1(), "Remastered");
            //adapter.AddFragment(new Fragment2(), "Fragment 2");
            //adapter.AddFragment(new Fragment3(), "Fragment 3");

            viewPager.Adapter = adapter;
        }
예제 #21
0
        public void SetUpViewPager(ViewPager viewPager)
        {
            TabAdapter adapter = new TabAdapter(SupportFragmentManager);

            adapter.AddFragment(new DetailStopFragment(), "Details");

            Bundle args = new Bundle();

            args.PutString("Trail ID", trailId);
            args.PutString("Stop ID", stopId);
            var stopFragment = adapter.GetItem(0);

            stopFragment.Arguments = args;

            viewPager.Adapter = adapter;
        }
예제 #22
0
        private void SetUpViewPager(ViewPager viewPager)
        {
            myTabAdpater = new TabAdapter(SupportFragmentManager);

            // NuevasAImprimir = 1,
            // AsignarParaNotificar = 2,
            // Notificandose = 3,
            // NotificacionCompletada = 4,
            // ResultadoEnCorreccion = 5,
            // PendienteDeDistribucion = 6,
            // EntregadaAlDespacho = 7

            if (supervisor)
            {
                //Pagina 0
                FragmentList fragmentInstance1 = new FragmentList();
                Bundle       bun1 = new Bundle();
                bun1.PutInt("someInt", 1);
                fragmentInstance1.Arguments = bun1;
                myTabAdpater.AddFragment(fragmentInstance1, "Nuevas a imprimir");

                //Pagina1
                FragmentList fragmentInstance2 = new FragmentList();//AsignarParaNotificar
                Bundle       bun2 = new Bundle();
                bun2.PutInt("someInt", 2);
                fragmentInstance2.Arguments = bun2;
                myTabAdpater.AddFragment(fragmentInstance2, "A notificar"); //se registra el resultado

                //Pagina 2
                FragmentList fragmentInstance3 = new FragmentList();
                Bundle       bun3 = new Bundle();
                bun3.PutInt("someInt", 3);
                fragmentInstance3.Arguments = bun3;
                myTabAdpater.AddFragment(fragmentInstance3, "Notificándose");// supervisor revisa el buzon filtrado por los notificadores.
                viewPager.Adapter = myTabAdpater;
                viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));

                //Pagina 3
                FragmentList fragmentInstance4 = new FragmentList();
                Bundle       bun4 = new Bundle();
                bun4.PutInt("someInt", 4);
                fragmentInstance4.Arguments = bun4;
                myTabAdpater.AddFragment(fragmentInstance4, "A entregar");// supervisor realiza la aprobacion o rechazo de notificaciones, se entiende como Notificaciones completadas
                viewPager.Adapter = myTabAdpater;
                viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));

                //Pagina 4
                FragmentList fragmentInstance5 = new FragmentList();
                Bundle       bun5 = new Bundle();
                bun5.PutInt("someInt", 6);
                fragmentInstance5.Arguments = bun5;
                myTabAdpater.AddFragment(fragmentInstance5, "Entregándose");// supervisor solicita correcion en una notificacion con observaciones incorrectas
                viewPager.Adapter = myTabAdpater;
                viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));

                ////Pagina 4
                //FragmentList fragmentInstance4 = new FragmentList();
                //Bundle bun4 = new Bundle();
                //bun4.PutInt("someInt", 6);
                //fragmentInstance4.Arguments = bun4;
                //myTabAdpater.AddFragment(fragmentInstance4, "Pendiente de distribución");// supervisor solicita correcion sobew notificacion
                //viewPager.Adapter = myTabAdpater;
                //viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));
            }
            else
            {
                //Pagina 0
                FragmentList fragmentInstance1 = new FragmentList();
                Bundle       bun1 = new Bundle();
                bun1.PutInt("someInt", 2);
                fragmentInstance1.Arguments = bun1;
                myTabAdpater.AddFragment(fragmentInstance1, "A notificar"); //se registra el resultado

                //Pagina 1
                FragmentList fragmentInstance2 = new FragmentList();
                Bundle       bun2 = new Bundle();
                bun2.PutInt("someInt", 3);
                fragmentInstance2.Arguments = bun2;
                myTabAdpater.AddFragment(fragmentInstance2, "Notificándose");// supervisor solicita correcion sobew notificacion
                viewPager.Adapter = myTabAdpater;
                viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));

                //Pagina 2
                FragmentList fragmentInstance3 = new FragmentList();
                Bundle       bun3 = new Bundle();
                bun3.PutInt("someInt", 5);
                fragmentInstance3.Arguments = bun3;
                myTabAdpater.AddFragment(fragmentInstance3, "A corregir");// supervisor solicita correcion sobew notificacion
                viewPager.Adapter = myTabAdpater;
                viewPager.AddOnPageChangeListener(new MyPageChangeListener(this));
            }
        }