private void cmbStandorte_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if ((sender as ComboBox).SelectedItem != null)
            {
                try
                {
                    this.currentStandort = (sender as ComboBox).SelectedItem.ToString();
                    this.repArten        = WerkstattManager.GetAlleFürStandort(this.currentStandort).ToList();
                    this.aufagabenHeute  = WerkstattManager.GetMessagesForToday(DateTime.Today, currentStandort).ToList();
                    if (this.repArten != null)
                    {
                        this.cmbReparturArten.ItemsSource = this.repArten.Select(item => item.Bezeichnung);
                    }

                    if (this.aufagabenHeute != null)
                    {
                        this.dgMessages.ItemsSource = this.aufagabenHeute;
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
 private void btnFertig_Click(object sender, RoutedEventArgs e)
 {
     if (this.dgMessages.SelectedItem != null)
     {
         Kundenrechhilfe toDelet = this.dgMessages.SelectedItem as Kundenrechhilfe;
         WerkstattBL.Controller.WerkstattManager.DeleteFromHelp(toDelet.Rechnungsnummer, toDelet.KundenID);
         this.dgMessages.ItemsSource = null;
         this.aufagabenHeute         = WerkstattManager.GetMessagesForToday(DateTime.Today, this.currentStandort).ToList();
         this.dgMessages.ItemsSource = this.aufagabenHeute;
     }
 }