Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.activity_main);
            NavigationLoader.init(this);
            apiService = new ApiService();

            var buttoLogin = FindViewById <Button>(Resource.Id.btnLogin);

            buttoLogin.Click += Login;
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.home);
            NavigationLoader.init(this);
            this.apiService = new ApiService();
            this.user       = JsonConvert.DeserializeObject <LoginResponse>(Settings.User);
            var toolbar = FindViewById <Toolbar>(Resource.Id.toolbarTabs);

            SetSupportActionBar(toolbar);
            SupportActionBar.Title       = "Perfilación De Pallets";
            this.txtCodebar              = FindViewById <EditText>(Resource.Id.txtcodeBar);
            txtCodebar.AfterTextChanged += changeCodebar;
            imm = (InputMethodManager)GetSystemService(Context.InputMethodService);
            txtCodebar.Touch += onTouchEvent;
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.infoPallet);
            NavigationLoader.init(this);
            apiService = new ApiService();
            this.InicializeInfo();
            this.codigo = Intent.GetStringExtra("Codigo");
            this.GetInfoPallet(this.codigo);
            var toolbar = FindViewById <Toolbar>(Resource.Id.toolbarInfoPallets);

            SetSupportActionBar(toolbar);
            SupportActionBar.Title = "Información Pallet";
            SupportActionBar.SetDefaultDisplayHomeAsUpEnabled(true);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
        }
Exemplo n.º 4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.seleccion_cara);
            this.apiService = new ApiService();
            NavigationLoader.init(this);
            this.idPallet   = Intent.GetStringExtra("IdPallet");
            this.CaraPallet = Intent.GetIntExtra("CaraPallet", 0);
            var toolbar = FindViewById <Toolbar>(Resource.Id.toolbarSeleccionCara);

            SetSupportActionBar(toolbar);
            SupportActionBar.Title = "Inspeción Pallet";
            this.user                    = JsonConvert.DeserializeObject <LoginResponse>(Settings.User);
            this.btnSeleccionCara        = FindViewById <Button>(Resource.Id.btnSeleccionCara);
            this.btnSeleccionCara.Click += SelecionarCara;
            if (this.CaraPallet > 0)
            {
                this.PresentAlert("Ya se seleccionó una cara para la inspección de este pallet, la cara seleccionada es: " + EnumHelper.GetEnumDescription((CarasPallet)this.CaraPallet), true);
            }
            // Create your application here
        }