private void UpcomingNumberInput_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { var item = new SpeakerNumber(); item.RednerNummer = UpcomingNumberInput.Text; UpcomingList.Add(item); UpcomingNumberView.Items.Add(item.RednerNummer); UpcomingNumberInput.Text = ""; } }
private void CurrentToLog() { var temp = new SpeakerNumber(); if (CurrentNumber.RednerNummer != null) { temp.RednerReihenfolge = RednerPosition++; temp.RednerNummer = CurrentNumber.RednerNummer; temp.RedeAnfang = CurrentNumber.RedeAnfang; temp.RedeEnde = DateTime.Now; RednerLog.Add(temp); } CurrentNumberView.Content = null; CurrentNumber.RednerNummer = null; }