private void StatesAcv_OnSuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { var selectedState = e.DataItem as string; CityAcv.IsEnabled = true; CityAcv.ItemsSource = Lookups.CitiesLookup(selectedState); CityAcv.Focus(); }
private void CountriesAcv_OnSuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { var selectedCountry = e.DataItem as string; StatesAcv.IsEnabled = true; StatesAcv.ItemsSource = Lookups.StatesLookup(selectedCountry); StatesAcv.Focus(); }
async private void srchClients_SuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { order = new Order(); var client = (Client)e.DataItem; clientId = client.ClientId; lstProducts.ItemsSource = null; pkrCategory.ItemsSource = null; await getCategories(); ProductsDataGrid.ItemsSource = null; lblTax.Text = "0"; lblDiscount.Text = "0"; lblService.Text = "0"; lblTax.Text = "0"; lblFinalPayment.Text = "0"; lblTotalPrice.Text = "0"; lblDelivery.Text = "0"; //lblTotalNumberOfItem.Text = "سبد" + "( " + "0" + " )"; //TotalNumberOfItem = 0; await ClientCreditStatus(clientId); }
private void srchProdcuts_SuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { var product = (Product)e.DataItem; productId = product.ProductId; }
private void srchClients_SuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { var client = (Client)e.DataItem; clientId = client.ClientId; }
private void SfChat_SuggestionItemSelected(object sender, SuggestionItemSelectedEventArgs e) { // Suggestion list not closed after selection. e.HideAfterSelection = false; }