private void btnOpen_Click(object sender, RoutedEventArgs e)
 {
     lvActive.ItemsSource = ErrandService.GetErrandsActive((Application.Current as App)
                                                           .connectionString).Take(Views.Settings.SetItemsMax())
                            .OrderBy(i => i.CreationTime)
                            .OrderByDescending(i => i.Id);
 }
 private void btnOpen_Click(object sender, RoutedEventArgs e)
 {
     lvActive.ItemsSource = ErrandService.GetErrandsActive((Application.Current as App).connectionString);
 }