Пример #1
0
        private void TxtTimKiem_TextChanged(object sender, TextChangedEventArgs e)
        {
            DataTable dataTable = new DataTable();

            if (txtTimKiem.Text.Length >= 1 && txtTimKiem.Text != "Tìm Kiếm...")
            {
                switch (type_timkiem)
                {
                case 0:
                {
                    dataTable = PhimBUS.TimTheoMaP(txtTimKiem.Text.ToString());
                }
                break;

                case 1:
                {
                    dataTable = PhimBUS.TimTheoTenPhim(txtTimKiem.Text.ToString());
                }
                break;
                }
            }
            else if (txtTimKiem.Text.Length == 0)
            {
                dataTable = PhimBUS.LoadDSPhim();
            }
            Load_Data(dataTable);
        }
Пример #2
0
 public DataTable SearchByName(string Name)
 {
     return(bus.TimTheoTenPhim(Name));
 }