private void OnAutocompleteCityClick(object adapter, AdapterView.ItemClickEventArgs eventArgs) { var item = _cityAdapter.GetItem(eventArgs.Position); Entity.City.Id = item.Id; Entity.City.Name = item.Name; }
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); }
private void OnAutocompleteCounterpartyClick(object adapter, AdapterView.ItemClickEventArgs eventArgs) { var item = _counterPartyAdapter.GetItem(eventArgs.Position); Entity.Counterparty = item; }