private void OnAutocompleteCityClick(object adapter, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _cityAdapter.GetItem(eventArgs.Position);

            Entity.City.Id   = item.Id;
            Entity.City.Name = item.Name;
        }
Exemple #2
0
        private void OnAutocompleteInvoiceClick(object sender, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _invoiceAdapter.GetItem(eventArgs.Position);

            AddGoodsReceivedNoteInvoiceId.Tag = item;

            if (item.GoodsReceivedNote != null)
            {
                return;
            }

            var items = item
                        .Products
                        .Select(pr => new Models.NoteEntry
            {
                Name = pr.Name
            })
                        .ToList();

            _addGoodsReceivedNoteAdapter.UpdateList(items);
        }
Exemple #3
0
        private void OnAutocompleteCounterpartyClick(object adapter, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _counterPartyAdapter.GetItem(eventArgs.Position);

            Entity.Counterparty = item;
        }