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; } }
private void worker_DoWork(object sender, DoWorkEventArgs e) { VisibilityProgressBar = Visibility.Visible; VisibilityListProducts = Visibility.Collapsed; SourceList = new PurchaseHistoryM().GetPurchaseHistoryList(firstDate, secondDate); }