Exemplo n.º 1
0
        public InventarioPage(int empresa)
        {
            //Context
            Context = new InventarioPageViewModel(empresa);

            InitializeComponent();

            this.BindingContext = Context;

            lstEnterprises.ItemTapped += (object sender, ItemTappedEventArgs e) =>
            {
                if (e.Item == null)
                {
                    return;
                }

                Task.Delay(500);

                // Deselect the item.
                if (sender is Xamarin.Forms.ListView lv)
                {
                    lv.SelectedItem = null;
                }
            };

            //this.popupLoadingView.IsVisible = false;
        }
Exemplo n.º 2
0
        public InventarioPage(string empresa)
        {
            //Context
            Context = new InventarioPageViewModel(empresa);

            InitializeComponent();

            lstEnterprises.BindingContext = Context;

            //this.popupLoadingView.IsVisible = false;
        }