Ejemplo n.º 1
0
        public void RegisterTalks(List <string> talkList)
        {
            var newTalks = TalksProcessor.Process(talkList).ToList();

            if (CannotBeRegistered(newTalks))
            {
                throw new ArgumentException("Exceeding Time Limit");
            }

            SelectedTalks.InsertRange(SelectedTalks.Count, newTalks);
        }
Ejemplo n.º 2
0
        public void RegisterTalks()
        {
            try
            {
                var newTalks = TalksLoader.Load();

                if (CannotBeRegistered(newTalks))
                {
                    throw new ArgumentException("Exceeding Time Limit");
                }

                SelectedTalks.InsertRange(SelectedTalks.Count, newTalks);
            }
            catch (ArgumentException e)
            {
                throw;
            }
        }