Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.PanelDeVenta);

            ISharedPreferences preferences = PreferenceManager.GetDefaultSharedPreferences(this);
            String             orientation = preferences.GetString("Orientation", "");

            if (orientation.Equals("1"))
            {
                SetContentView(Resource.Layout.PanelDeVenta);
            }
            else
            {
                SetContentView(Resource.Layout.PanelDeVenta2);
            }

            FragmentoBotoneraPrincipal fragmentoBotoneraPrincipal = new FragmentoBotoneraPrincipal("tecladoPagos");
            FragmentoConfiguration     fragmentos = new FragmentoConfiguration();

            fragmentos.AddFragment(Resource.Id.fragment_container, fragmentoBotoneraPrincipal, "BotoneraPrincipal", FragmentManager);
            fragmentos.AddFragment(Resource.Id.panel, new FragmentoPanelDePago(), "VistaOperador", FragmentManager);

            panel = FindViewById <FrameLayout>(Resource.Id.panel);
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.PanelDeVenta);

            panelVenta = new ModelPanelVenta(this);
            Entorno.Instancia.Vista.PanelVentas = panelVenta;

            SolicitudIniciarSesion solicitud2 = new SolicitudIniciarSesion(Redsis.EVA.Client.Core.Enums.Solicitud.IniciarSesion, "1010", "1010");

            //SolicitudPanelVenta solicitudPanel = new SolicitudPanelVenta(Redsis.EVA.Client.Core.Enums.Paneles.PanelVenta);

            ISharedPreferences preferences = PreferenceManager.GetDefaultSharedPreferences(this);
            String             orientation = preferences.GetString("Orientation", "");

            if (orientation.Equals("1"))
            {
                SetContentView(Resource.Layout.PanelDeVenta);
            }
            else
            {
                SetContentView(Resource.Layout.PanelDeVenta2);
            }

            FragmentoBotoneraPrincipal fragmentoBotoneraPrincipal = new FragmentoBotoneraPrincipal("principal");

            FragmentoConfiguration fragmentoConfiguration = new FragmentoConfiguration();

            fragmentoConfiguration.AddFragment(Resource.Id.fragment_container, fragmentoBotoneraPrincipal, "BotoneraPrincipal", FragmentManager);
            fragmentoConfiguration.AddFragment(Resource.Id.numberPadFragment, new FragmentoNumberPad(), "NumberPad", FragmentManager);
            fragmentoConfiguration.AddFragment(Resource.Id.operatorView, new FragmentoVistaOperador(), "VistaOperador", FragmentManager);

            panel = FindViewById <FrameLayout>(Resource.Id.panel);
        }