예제 #1
0
 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 = "";
     }
 }
예제 #2
0
        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;
        }