Exemple #1
0
 public void changeView()
 {
     if (firstDate != null && secondDate != null && firstDate <= secondDate)
     {
         SourceList = new PurchaseHistoryM().GetPurchaseHistoryList(firstDate, secondDate);
     }
     if (firstDate > secondDate)
     {
         View.InvalidDates.Visibility = Visibility.Visible;
     }
     else
     {
         View.InvalidDates.Visibility = Visibility.Collapsed;
     }
 }
Exemple #2
0
 private void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     VisibilityProgressBar  = Visibility.Visible;
     VisibilityListProducts = Visibility.Collapsed;
     SourceList             = new PurchaseHistoryM().GetPurchaseHistoryList(firstDate, secondDate);
 }