Ejemplo n.º 1
0
        private void CallAgent_Click(object sender, RoutedEventArgs e)
        {
            var maxId     = Calls.Max(a => a.Id);
            var currentId = maxId + 1;
            var newCall   = new Call()
            {
                Id            = currentId,
                DurationInSec = generator.GenerateNumber()
            };

            Calls.Enqueue(newCall);
            LogConsole.Items.Add(consoleService.AddNewCall());
            LogConsole.Items.Add(consoleService.CallInfo(Calls.Count()));
        }