private void btnRefresh_Click(object sender, RoutedEventArgs e)
 {
     isRefreshing = true;
     txtSearch.Clear();
     dpToPC.SelectedDate    = null;
     dpFromPC.SelectedDate  = null;
     dgvReceipt.ItemsSource = BUS_PhieuChi.showData();
     isRefreshing           = false;
 }
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Bạn có muốn xóa dòng này?", "Confirmation", MessageBoxButton.YesNo);

            if (result == MessageBoxResult.Yes)
            {
                if (dgvReceipt.SelectedItem != null)
                {
                    DTO_PhieuChi obj = dgvReceipt.SelectedItem as DTO_PhieuChi;
                    String       id  = obj.MaPhieuChi;

                    BUS_PhieuChi.DeletePC(id);
                    dgvReceipt.ItemsSource = BUS_PhieuChi.showData();
                }
            }
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     dgvReceipt.ItemsSource = BUS_PhieuChi.showData();
 }