//private void readFilter() //{ //} private void Button_Click(object sender, RoutedEventArgs e) { try { vwBrunvollAuftragsbestand p = (vwBrunvollAuftragsbestand)ProjekteView.CurrentItem; Session.CurrentProjectID = (int)p.id; MainWindow mw = new MainWindow((int)p.id); this.NavigationService.Navigate(mw); e.Handled = true; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void RunProjekt_Click(object sender, RoutedEventArgs e) { vwBrunvollAuftragsbestand p = (vwBrunvollAuftragsbestand)ProjekteView.CurrentItem; if (this.testListView.IsEnabled == true) { this.testListView.IsEnabled = false; this.testListView.Visibility = Visibility.Collapsed; } else { this.testListView.IsEnabled = true; this.testListView.Visibility = Visibility.Visible; } }