private void txtSearch_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         GridProducts.ItemsSource = factory.FindProducts(txtSearch.Text);
     }
 }
Exemple #2
0
        public ProductManagement()
        {
            InitializeComponent();

            factory = new ProductsFactory();

            GrdProducts.ItemsSource = factory.FindProducts(TxtSearch.Text);
        }
Exemple #3
0
 private void TxtSearch_TextChanged(object sender, TextChangedEventArgs e)
 {
     GrdProducts.ItemsSource = factory.FindProducts(TxtSearch.Text);
 }
Exemple #4
0
 private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     // ItemsSource를 xaml파일에서 사용할 때는 바인딩으로 사용
     // DataContext
     GrdProducts.ItemsSource = factory.FindProducts(TxtSearch.Text);
 }