Exemplo n.º 1
0
 private void CategoriesComboBox_TextChanged(object sender, Syncfusion.Android.ComboBox.TextChangedEventArgs e)
 {
     ChamberOfSecrets.Instance.AllGroceries.FilterByType(Grocery.ParseEnum <Category>(categoriesComboBox.Text));
     groceriesAutoComplete.DataSource = from grocery in ChamberOfSecrets.Instance.AllGroceries.Groceries
                                        where grocery.IsCategorized == true
                                        select grocery.Name;
 }
Exemplo n.º 2
0
 private void CategoriesComboBox_TextChanged(object sender, Syncfusion.Android.ComboBox.TextChangedEventArgs e)
 {
     //var watch = System.Diagnostics.Stopwatch.StartNew();
     ChamberOfSecrets.Instance.group.AvailableGroceries.FilterByType(Grocery.ParseEnum <Category>(categoriesComboBox.Text));
     LoadGroceries();
     //watch.Stop();
     //Toast.MakeText(this, "Vreme:" + watch.ElapsedMilliseconds, ToastLength.Short).Show();
 }