private void btnLocDSHSX_Click(object sender, RoutedEventArgs e) { XTL = new XemTheoLoai(); //Fiter View XTL.EventXemTheoLoai += new XemTheoLoai.PassData(FiterView); string chuoi = "MaHangSX == 0"; XTL.Tile = "Nhà Sản Xuất: "; foreach (var check in FindVisualChildren <CheckBox>(ListDSNSX)) { if (check.Name == "checkHangSX") { if (check.IsChecked == true) { chuoi += " or " + "MaHangSX == " + check.Tag; XTL.Tile += check.ToolTip + " 。"; } } } XTL.DieuKien = chuoi; UserControlView.Children.Clear(); HidenView(); XTL.Visibility = Visibility.Visible; hidden1.Width = 0; hidden4.Visibility = Visibility.Visible; hidden4.Width = Double.NaN; UserControlView.Children.Add(XTL); }
private void FunTimKiem(string Tile) { XTL = new XemTheoLoai(); XTL.EventXemTheoLoai += new XemTheoLoai.PassData(FiterView); XTL.Tile = Tile; UserControlView.Children.Clear(); HidenView(); XTL.Visibility = Visibility.Visible; hidden1.Width = 0; hidden4.Visibility = Visibility.Visible; hidden4.Width = Double.NaN; UserControlView.Children.Add(XTL); }
private void btnTiemKiem_Click(object sender, RoutedEventArgs e) { XTL = new XemTheoLoai(); //Fiter View XTL.EventXemTheoLoai += new XemTheoLoai.PassData(FiterView); XTL.Tile = "Tất Cả Sản Phẩm "; XTL.DieuKien = "MaSP > 0"; UserControlView.Children.Clear(); HidenView(); XTL.Visibility = Visibility.Visible; hidden1.Width = 0; hidden4.Visibility = Visibility.Visible; hidden4.Width = Double.NaN; UserControlView.Children.Add(XTL); }