public SearchPanel(Grid grid) { InitializeComponent(); this.grid = grid; SetSearchBar(); Search_list.ItemsSource = MeasureShort.GetSearched(SearchData()); LangControl_Searchpanel(); }
private void MeasuereDelete(object sender, RoutedEventArgs e) { MenuItem raw = sender as MenuItem; MeasureShort data = raw.DataContext as MeasureShort; Charge.Delete(data.charge_id); Search_list.ItemsSource = MeasureShort.GetSearched(SearchData()); }
private void RefreshSearchClick(object sender, RoutedEventArgs e) { cikkszam_srcinp.Text = ""; charge_srcinp.Text = ""; szallito_srcinp.Text = ""; anyagnev_srcinp.Text = ""; beerk_srcinp.Text = ""; allapot_check.IsChecked = false; SetSearchParam(); Search_list.ItemsSource = MeasureShort.GetSearched(SearchData()); }
private async void SearchTextChanged(object sender, TextChangedEventArgs e) { TextBox textbox = (TextBox)sender; int fisrtLength = textbox.Text.Length; await Task.Delay(250); if (fisrtLength == textbox.Text.Length) { Search_list.ItemsSource = MeasureShort.GetSearched(SearchData()); SetSearchParam(); } }
private void AllapotChecked(object sender, RoutedEventArgs e) { Search_list.ItemsSource = MeasureShort.GetSearched(SearchData()); }